This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: debugging threads vs processes
- To: Cedric Berger <cedric at wireless-networks dot com>
- Subject: Re: debugging threads vs processes
- From: Jeff Sturm <jsturm at one-point dot com>
- Date: Fri, 13 Jul 2001 18:29:13 -0400 (EDT)
- cc: java-discuss at sources dot redhat dot com
On Fri, 13 Jul 2001, Cedric Berger wrote:
> I've currently 8 Java server application running on my server, each creating
> between 10 to 30 thread. Do you think Linux "top" output is very useful on
> my server?
It'd certainly be nice to toggle thread vs. process display. On Solaris,
top doesn't tell me how many threads are running in a process. I'd like
it both ways...
> And I need to write a shell script just to kill one process :(
I've had good luck when I signal the main thread. Usually linuxthreads
cleans itself up, unless something is really stuck. Of course identifying
the main thread from "ps -ef" can be tricky, so I like to record the pid
in a startup script.
Jeff