I can reason why the OS (win2000) shows more threads running than a thread dump in the Tomcat console but what are these threads?
-----Original Message----- From: Yedil Workeneh [mailto:yedwor@;AUTO-TROL.COM] Sent: Sunday, October 20, 2002 10:07 AM To: [EMAIL PROTECTED] Subject: Re: debug Servlet When I turn on tomcat through services (tomcat.exe)...I see 34 threads running according to the Windows Task manager... When I turn on tomcat through a windows console (java.exe)...I see 31 threads running according to the Windows Task manager...I'm guessing there are 3 extra threads that tomcat needs to talk to native Windows code... When I do a control break in the windows console I only count 29 threads: 1 "Thread-1" 5 Ajp13Processors.... Ajp13Processor[8009][4] - Ajp13Processor[8009][0] 1 Ajp13Connector 5 HttpProcessors....HttpProcessor[8080][4] - HttpProcessor[8080][0] 1 HttpConnector 8 StandardManagers eg: StandardManager[/tomcat-docs],StandardManager[/examples]... 1 "WebappLoader[/examples]" 1 "Signal Dispatcher" 1 "Finalizer" 1 "Reference Handler" 1 "main" 1 "VM Thread" 1 "VM Periodic Task Thread" 1 "Suspend Checker Thread" So are they supposed to correspond? -----Original Message----- From: Marco Trevisan [mailto:m.trevisan@;ZUCCHETTITOOLS.COM] Sent: Wednesday, October 16, 2002 8:40 AM To: [EMAIL PROTECTED] Subject: Re: debug Servlet If you launch Tomcat on a windows console with CTRL-BREAK you can list all running threads. Marco ----- Original Message ----- From: "Yedil Workeneh" Sent: Wednesday, October 16, 2002 2:59 PM Subject: debug Servlet > Is there a way to identify what a runaway thread is doing? > > After starting up tomcat, I put my application under heavy load for 15-20 > minutes. I bring up the task manager and make sure the CPU usage is ~99 and > I exercise the memory up to 140M. I check the access logs for the last > request and wait for the memory to get reclaimed...it doesn't...I have > finalize calls in my code.... I've waited hours after I get Tomcat in this > state and there is no return to normalcy... > > I get the same result using Tomcat 4.0.3 or 4.0.6.... > > I guess there are tools that track threads and let you know if a thread is > running amuck, but is there a way to tell what it is doing?... > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html