Why does the "ps -ef|grep rv" command on Linux show about 10 rvd processes running, while I have started only one daemon?
book
Article ID: KB0089158
calendar_today
Updated On:
Products
Versions
TIBCO Rendezvous
-
Not Applicable
-
Description
Resolution: You are seeing this result because the Linux implementation of "ps" lists not only the main process, but also its lightweight processes (threads).
One way to show the hierarchy of these processes is to run:
ps awxf|grep rvd
8740 ? S 0:00 rvd -listen tcp:7500 8741 ? S 0:00 \_ rvd -listen tcp:7500 8742 ? S 0:00 \_ rvd -listen tcp:7500 8743 ? S 0:00 \_ rvd -listen tcp:7500 8744 ? S 0:00 \_ rvd -listen tcp:7500 8750 ? S 0:00 \_ rvd -listen tcp:7500 8751 ? S 0:00 \_ rvd -listen tcp:7500 8752 ? S 0:00 \_ rvd -listen tcp:7500 8755 ? S 0:46 \_ rvd -listen tcp:7500 8756 ? S 130:00 \_ rvd -listen tcp:7500 8757 ? S 85:39 \_ rvd -listen tcp:7500
Hence an easy way to get rid of the threads is to run:
ps awxf|grep rvd|grep -v "\_"|grep -v grep
which will alleviate the visual parent/child relationship.
Another way to prompt only the main process is to run: