[ale] ps without threads

David Corbin dcorbin at enttek.com
Thu Nov 4 15:55:08 EST 2004


On Thursday 04 November 2004 03:02 pm, Barry Hawkins wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> David Corbin wrote:
> | I know that ps can show each thread as a process, or not, but I cannot
>
> find
>
> | the switch that controls this.   Specifically, my ps shows all
>
> threads, and
>
> | that's not what I want.
>
> [...]
>
> ~    It's a bit odd that your ps defaults to showing threads as
> processes; what is your platform, distro and shell?  

i386, Debian/Gentoo, bash

> Are there any 
> aliases lurking about in /etc/*rc files or something?  

None defined according to "alias"

> Does your 
> printenv yield any PS_* variables being set?

No.
>
> ~    Perhaps you could post some sample output...
Here is a fragment.... of "ps ax".

18185 pts/23   Ss+    0:00 /bin/sh /home/dcorbin/tools/jboss/bin/run.sh
18190 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18191 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18192 pts/23   S+     0:52 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18193 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18194 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18195 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18196 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18197 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18198 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18199 pts/23   S+     0:17 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18200 pts/23   S+     0:00 /home/dcorbin/tools/jdk/bin/java -Xdebug -Xnoagent 
-Djava.compiler=NONE -Xrunjdwp transpor
18

> typical ps examples from 
> the man pages to show thread info include:
>
> ps -eLf
> ps axms
>

Yes, I saw that, and the other info you posted in the man page.  But that 
isn't what I want.



More information about the Ale mailing list