LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-11-2015, 11:51 PM   #1
apss_evaluator
Member
 
Registered: Mar 2012
Posts: 115

Rep: Reputation: Disabled
jboss7 giving 2 PID's


Hi Linux Guru's

We have a running jboss7 app from our servers, I am just wondering although our dev people has a strong stop-start jboss script, we still got an output of two PID's after the start of jboss7. So we just assumed the old PID becomes on stale state but we are still not sure. May I know is there anyone encounter this same situataion? Does the "what-we-so-called stale PID" still eat memory resources of the server?


[pogi@gorgeous_server log]$ ps -ef | grep standalone
pogi 10664 6724 0 22:27 pts/1 00:00:00 grep standalone
pogi 14114 1 0 Mar10 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/standalone.sh -c=standalone.xml -b=0.0.0.0
pogi 14207 14114 99 Mar10 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms12G -Xmx12G -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/pogi/log -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Djava.io.tmpdir=/opt/pogi/.cache -Xloggc:/opt/pogi/log/gc.log -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dorg.jboss.boot.log.file=/opt/pogi/pkg/jboss-pogi/standalone/log/boot.log -Dlogging.configuration=file:/opt/pogi/pkg/jboss-pogi/standalone/configuration/logging.properties -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=0.0.0.0
pogi 10664 6724 0 22:27 pts/1 00:00:00 grep standalone
pogi 14344 1 0 Mar8 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/standalone.sh -c=standalone.xml -b=0.0.0.0
pogi 23421 14114 99 Mar8 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xms12G -Xmx12G -XX:MaxPermSize=256m -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/opt/pogi/log -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.server.default.config=standalone.xml -Djava.io.tmpdir=/opt/pogi/.cache -Xloggc:/opt/pogi/log/gc.log -XX:+PrintGC -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCTimeStamps -Dorg.jboss.boot.log.file=/opt/pogi/pkg/jboss-pogi/standalone/log/boot.log -Dlogging.configuration=file:/opt/pogi/pkg/jboss-pogi/standalone/configuration/logging.properties -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=0.0.0.0

Last edited by apss_evaluator; 03-12-2015 at 12:03 AM.
 
Old 03-12-2015, 07:34 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Going by the pids/ppids, the startup script is the one launching both instances.

Quote:
pogi 14114 1 0 Mar10 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/standalone.sh -c=standalone.xml -b=0.0.0.0
pogi 14207 14114 99 Mar10 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompre...
pogi 23421 14114 99 Mar8 ? 4-21:59:53 /opt/pogi/pkg/sunjdk6_25/bin/java -D[Standalone] -server -XX:+UseCompres...
The fact that the start times are days apart makes me suspicious that the start script is a bit dodgy, also I would expect the start script to daemonise the JBoss process and exit, not hang around. It may be worth finding a better start script...
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
netstat -anp is not giving the pid/process_name! vamsi9042 Linux - Networking 4 05-29-2018 03:38 PM
jboss7 is crashing apss_evaluator Linux - Newbie 3 08-04-2014 11:50 PM
Confluence PID issue. (Removing/clearing stale PID file) vignesh4sh Linux - Server 5 12-05-2012 07:14 AM
Can I assign a Command to a specific PID so I can kill a predetermined PID johnmccarthy Linux - Newbie 1 11-03-2011 08:41 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 03:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration