tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: jstack and Tomcat 6 on Windows
Date Sat, 20 Sep 2008 11:09:58 GMT
>> Thanks everyone for their suggestions.
>>
>> Unfortunately, that doesn't help me with my particular issue. I have a 
>> memory leak in one of my apps, and when the system runs out of memory, it 
>> stops responding to new requests. I have a script that will detect this 
>> condition and automatically restart Tomcat. I was hoping to add a jstack 
>> command to this script to give me a thread dump prior to restarting 
>> Tomcat to give me better troubleshooting information. Your solution would 
>> work under normal circumstances, but I don't know how to script a 
>> ctrl+break. ;-)
>
> ----------------

OK... I couldnt resist giving it a little go... JHat is exactly what you 
looking for...
http://weblogs.java.net/blog/jfarcand/archive/2006/02/using_mustangs.html

Well done Sun... its exactly what I've been looking for...

Let the server run a little.... do a dump, run the server and then from the 
browser to the HIST option...

The highest non Sun class... webapp class... is going to be the bad guy ;)

Damn thats nice...

---------------------------------------------------------------------------
HARBOR : http://www.kewlstuff.co.za/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm
--------------------------------------------------------------------------- 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message