ps acting weird?

Danny Braniss danny at cs.huji.ac.il
Wed Jan 21 03:21:18 PST 2009


> On Wed, 21 Jan 2009, Danny Braniss wrote:
> 
> > thanks Robert, it is always educational to read your answers!
> >
> > i have set kern.ps_arg_cache_limit, as you suggested to 4k, but i think 512 
> > would have been enough (excluding those pathological cases of 'command *') 
> > btw, this tomcat/java command line was 312 (why not use a config file!).
> >
> > which brings on another issue:
> >
> > ps -o command= -p 777
> > /usr/local/diablo-jdk1.6.0/bin/java -Djava.endorsed.dirs= -classpath [...]
> > while
> > ps -o comm= -p 777
> > java
> 
> ps distinguishes "comm", which is the binary name as stored in the process 
> structure's p_comm field, and the command line, which is p_args.  From the 
> ps(1) man page:
> 
> KEYWORDS
>       The following is a complete list of the available keywords and their
>       meanings.  Several of them have aliases (keywords which are synonyms).
> ...
>       comm       command
>       command    command and arguments

hehe, i read the manual :-), hence my question, the only difference, from the
manual, is that command is comm and arguments, which now you explained that
it's not so.

danny




More information about the freebsd-hackers mailing list