Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-12-2015, 12:51 AM   #1
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/ -c=standalone.xml -b=
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 -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 -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/ -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=
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/ -c=standalone.xml -b=
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 -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 -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/ -jar /opt/pogi/pogi/jboss-pogi/jboss-modules.jar -mp /opt/pogi/pkg/jboss-pogi/modules -jaxpmodule javax.xml.jaxp-provider -Djboss.home.dir=/opt/pogi/pkg/jboss-pogi -c=standalone.xml -b=

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

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

pogi 14114 1 0 Mar10 ? 00:00:00 /bin/sh /opt/pogi/pkg/jboss-pogi/bin/ -c=standalone.xml -b=
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
jboss7 is crashing apss_evaluator Linux - Newbie 3 08-05-2014 12:50 AM
Confluence PID issue. (Removing/clearing stale PID file) vignesh4sh Linux - Server 5 12-05-2012 08:14 AM
netstat -anp is not giving the pid/process_name! vamsi9042 Linux - Networking 2 11-08-2011 11:32 PM
Can I assign a Command to a specific PID so I can kill a predetermined PID johnmccarthy Linux - Newbie 1 11-03-2011 09:41 AM
How to get the PID of the process giving kill signal to a process? hariprd Programming 2 11-27-2008 04:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:34 PM.

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