Operating System - HP-UX
1833772 Members
2377 Online
110063 Solutions
New Discussion

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

 
mtoo.guo
Honored Contributor

Which command can get detail output of java process status like "ps axwww" on linux ?

Hello,

Here is one question confused me,on linux OS,I can get below output using "ps axwww" command:
--------------------------
%TIME PID PPID TOT SECS SIZE(Kb) UID COMMAND
93.30 14540 14539 3517009.08 31700 dzsys /opt/java1.4/bin/PA_RISC2.0/java -Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl -DADAPTER_CONFIG_DIR=/home/dzsys/child/config/standard -cp /home/dzsys/child/lib/adapter.jar:/home/dzsys/child/lib/mqsych.jar:/home/dzsys/child/lib/log4j-1.2.8.jar:/home/dzsys/child/lib/com.ibm.mq.jar:/home/dzsys/child/lib/com.ibm.mqbind.jar:/home/dzsys/child/lib/com.ibm.mqjms.jar:/home/dzsys/child/lib/connector.jar:/home/dzsys/child/lib/xercesImpl.jar:/home/dzsys/child/lib/xml-apis.jar:/home/dzsys/child/lib/junit.jar:/home/dzsys/child/lib/commons-codec-1.2.jar:/home/dzsys/child/lib/commons-logging.jar:/home/dzsys/child/lib/commons-pool.jar:/home/dzsys/child/lib/classes12.jar:/home/dzsys/child/lib/ifxjdbc.jar:/home/dzsys/child/lib/jdom.jar:/home/dzsys/child/config/standard com.mob.mq.children.Run
4.52 24008 1 4284.31 188964 dxuser /opt/java1.4/bin/PA_RISC2.0/java -Xms256M -Xmx256M -cp ..//lib/b2b20081107.jar:..//lib/ServerHelpDoc.jar:..//lib/rowset.jar:..//lib/adapter.jar:..//lib/connector.jar:..//lib/sample.jar:..//lib/ifxjdbc.jar:..//lib/xalan.jar:..//lib/ojdbc14.jar:..//lib/jconn2d.jar:..//lib/xercesImpl.jar:..//lib/com.ibm.mq.jar:..//lib/jhall.jar:..//lib/xml-apis.jar:..//lib/com.ibm.mqbind.jar:..//lib/log4j-1.2.8.jar:..//lib/xmlParserAPIs.jar:..//lib/com.ibm.mqjms.jar:..//lib/proxool-0.8.3.jar:..//lib/psijni.jar:..//lib/commons-beanutils.jar:..//lib/commons-fileupload.jar:..//lib/commons-logging.jar:..//lib/commons-collections-3.1.jar:..//lib/jta.jar:..//lib/quartz-1.6.0.jar:..//lib/commons-httpclient-2.0.2.jar:..//lib/commons-pool.jar:..//lib/commons-digester.jar:..//lib/commons-lang.jar:..//lib/commons-validator.jar:..//lib/commons-codec-1.2.jar:..//config b2b.filesend.server.SendServer
0.24 12863 1 40820.48 29940 patrol PatrolAgent -id P11_msgpcomm
0.21 1889 1 294.29 8112 root mad -u root -g bin
0.10 1451 1 153.68 114160 dxuser /opt/java1.4/bin/PA_RISC2.0/java -Xms64M -Xmx128M -cp ..//lib/censerver1020.jar:..//lib/adapter.jar:..//lib/ifxjdbc.jar:..//lib/com.ibm.mq.jar:..//lib/com.ibm.mqbind.jar:..//lib/com.ibm.mqjms.jar:..//lib/connector.jar:..//lib/xercesImpl.jar:..//lib/trustapp.jar:..//lib/jconn2d.jar:..//lib/classes12.jar:..//lib/censerver.jar:..//lib/xmlParserAPIs.jar:..//lib/commons-codec-1.2.jar:..//lib/commons-logging.jar:..//lib/commons-pool.jar:..//lib/log4j-1.2.8.jar:..//lib/xml-apis.jar:..//lib/sample.jar:..//lib/jdom.jar:..//config com.sysnet.dcss.monitor.Start


--------------------------


But on hpux ,I do not know how to get these detail java info running on my servers.Pls help ,TKS very much!
5 REPLIES 5
Jeeshan
Honored Contributor

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

check this command

#ps -ef|grep
a warrior never quits
James R. Ferguson
Acclaimed Contributor

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

Hi:

On HP-UX, the command line size reported is set to 128-characters by default. This can be increased up to 1020 characters if '/etc/default/ps' is appropriately configured. See the "Notes" section of the 'ps' manpages:

http://docs.hp.com/en/B2355-60130/ps.1.html

Regards!

...JRF...
mtoo.guo
Honored Contributor

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

# more /etc/default/ps
DEFAULT_CMD_LINE_WIDTH = 1024
PS_CMD_BASENAME = 255


# ps -ef | grep java
root 1307 1 0 Jul 17 ? 102:48 /opt/hpservices/jre/bin/../bin/PA_RISC/native_threads/java -DRu
settle 15470 1 0 Jul 31 ? 69:20 /opt/java1.5/bin/PA_RISC2.0/java -DISO_8859_1=gb2312 -Xms64m -X
dxuser 22647 1 0 Jan 4 ? 3:16 /opt/java1.4/bin/PA_RISC2.0/java -Xms64M -Xmx128M -cp ..//lib/c
dxuser 1278 1 0 Jan 4 ? 45:18 /opt/java1.4/bin/PA_RISC2.0/java -Xms256M -Xmx256M -cp ..//lib/
dzsys 6255 6254 0 Jan 4 ? 0:33 /opt/java1.4/bin/PA_RISC2.0/java -Djavax.xml.parsers.DocumentBu
dzsys 14485 14484 0 Oct 24 ? 116:24 /opt/java1.4/bin/PA_RISC2.0/java -Djavax.xml.parsers.DocumentBu
#


The same as before ,i think this is the display problem,but no use after setting /etc/default/ps value.
mtoo.guo
Honored Contributor

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

# ps -ef | grep 1307
root 1307 1 0 Jul 17 ? 102:48 /opt/hpservices/jre/bin/../bin/PA_RISC/native_threads/java -DRu
mtoo.guo
Honored Contributor

Re: Which command can get detail output of java process status like "ps axwww" on linux ?

Sorry ,my OS version is 11.11,is it support this function ?