Thanks again for all of our suggestions. The Eclipse Memory Analyzer Tool looks 
very interesting and helpful. It also calls out the JAVA_OPT  
-XX:+HeapDumpOnOutOfMemoryError to auto generate a heap dump for me. I was 
originally looking for a way to automatically generate a thread dump, but this 
will be extremely helpful as well. 

Another alternative to JHAT is Sun's new free tool, Visual VM. I think JHAT is 
part of its underlying technology. Visual VM now ships with Sun JDK 1.6.0_07 
and later, and is available via download separately from 
https://visualvm.dev.java.net/ 

I believe that VisualVM will eventually replace Sun's Jconsole, as it has all 
of Jconsole's functionality as well as heap dump, thread dump, and basic 
profiler functionality. It seems to have some of the functionality that is in 
Eclipse MAT. Not sure of the pro's and con's of one vs. the other though. I 
plan on looking at both. 

Thanks again,
Brian


----- Original Message ----
From: Surendrakumar Viswanathan -X (suviswan - HCL at Cisco) 
To: Surendrakumar Viswanathan -X (suviswan - HCL at Cisco)  Tomcat Users List 
<users@tomcat.apache.org>
Sent: Monday, September 22, 2008 4:56:05 AM
Subject: RE: jstack and Tomcat 6 on Windows

OOPS It's alternate to JHAT and not JMAP.

Suren 

> -----Original Message-----
> From: Surendrakumar Viswanathan -X (suviswan - HCL at Cisco) 
> Sent: Monday, September 22, 2008 3:25 PM
> To: 'Tomcat Users List'
> Subject: RE: jstack and Tomcat 6 on Windows
> 
> Check Eclipse Memory Analyzer Tool www.eclipse.org/mat/. This 
> is alternate to JMAP, but it can parse the hprof file faster 
> and have a very visual GUI.
> 
> Thanks
> Suren 
> 
> > -----Original Message-----
> > From: Johnny Kewl [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, September 20, 2008 4:40 PM
> > To: Tomcat Users List
> > Subject: Re: jstack and Tomcat 6 on Windows
> > 
> > >> 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_mu
> > stangs.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
> > --------------------------------------------------------------


      

Reply via email to