Operating System - Linux
1752822 Members
4063 Online
108789 Solutions
New Discussion юеВ

Re: XPG4 ps -C unreliable?

 
Ralph Grothe
Honored Contributor

XPG4 ps -C unreliable?

Hello,

so far I always could rely on the -C option of the hpux ps command.
But now I discovered that one of my monitoring plug-ins failed to fetch the java master thread via this interface.
This is kind of disturbing and I wonder if I better shift to Perl's Proc::ProcessTable in the future, or other hacks?

Here's an example:

$ uname -srv
HP-UX B.11.11 U

$ UNIX95= ps -C java -x -o args
COMMAND
$

$ ps -e|grep java
4702 ? 289:52 java_q3p

$ UNIX95= ps -p 4702 -o comm=
java

$ UNIX95= ps -p 4702 -x -o args=
/opt/java1.5/bin/PA_RISC2.0/java -Xms512m -Xmx2048m -XX:NewSize=64m -XX:MaxNewSize=256m -server -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -XdoCloseWithReadPending -Djava.endorsed.dirs=/opt/hpws/tomcat/common/endorsed -classpath :/opt/hpws/tomcat/bin/bootstrap.jar:/opt/hpws/tomcat/bin/commons-logging-api.jar -Dcatalina.base=/opt/hpws/tomcat -Dcatalina.home=/opt/hpws/tomcat -Djava.io.tmpdir=/opt/hpws/tomcat/temp org.apache.catalina.startup.Bootstrap start
Madness, thy name is system administration
2 REPLIES 2
James R. Ferguson
Acclaimed Contributor

Re: XPG4 ps -C unreliable?

Hi Ralph:

Do you have patch PHCO_31978 installed? This one is old, but did address issues with '-x' among other problems.

Regards!

...JRF...
Ralph Grothe
Honored Contributor

Re: XPG4 ps -C unreliable?

Hi James,

yes, this patch seems installed

# swlist PHCO_31978|grep ^[^#]
PHCO_31978.CORE-ENG-A-MAN 1.0 OS-Core.CORE-ENG-A-MAN
PHCO_31978.UX-CORE 1.0 OS-Core.UX-CORE


The patch level on this system isn't that dated (June 2007).
And on the next scheduled maintenance on Sunday 17 Feb I will be installing SupportPlus Dec 2007.

# swlist -l bundle GOLD\*|grep ^[^#]
GOLDAPPS11i B.11.11.0706.467 Applications Patches for HP-UX 11i v1, June 2007
GOLDBASE11i B.11.11.0706.467 Base Patches for HP-UX 11i v1, June 2007

Madness, thy name is system administration