Operating System - HP-UX
1836428 Members
3507 Online
110100 Solutions
New Discussion

/usr/ucb/ps on hpux 11.23

 
Oleg Zieaev_1
Regular Advisor

/usr/ucb/ps on hpux 11.23

Hi.
Is there such thing? Alternatives?
standard ps -efx still not enough to see all arguments submitted for java process.
UNIX95= ps -ef -o 'args' showing similar output to ps -efx (just arguments part).
Please help. Need to see all arguments submitted for java process.
Professionals will prevail ...
3 REPLIES 3
James R. Ferguson
Acclaimed Contributor

Re: /usr/ucb/ps on hpux 11.23

Hi:

You can configure DEFAULT_CMD_LINE_WIDTH=n in the '/etc/default/ps' file. A value of 'n' between 64 and 1024 is allowed. In the absence of any setting (or file) the default size is 128. Create the file if/as necessary.

Regards!

...JRF...
Oleg Zieaev_1
Regular Advisor

Re: /usr/ucb/ps on hpux 11.23

Thank you for reply.
This is good, the output now is the same as if I would use ps -efx option.
I still need more. Is there a way to set this number realy high? Also, changing defaults for any ps output might not be a good idea.
Is there another way to display full line for weblogic arguments?
Professionals will prevail ...
Bill Hassell
Honored Contributor

Re: /usr/ucb/ps on hpux 11.23

As far as I know, the 1024 limit is the length of the command line in the process table. Your process is able to see up to 2 MB (ie, getconf ARG_MAX) but the space in the process table is limited and if 2 MB were reserved for every process (just in case), the process table would consume 2000 times more space in the kernel. Just like Java, massively long command lines are very difficult to manage and the only solution is to trim the huge paths with symlinks, The other technique is to move the arguments of interest to the front of the command line.


Bill Hassell, sysadmin