tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian" <bbprefix-m...@yahoo.com>
Subject RE: Tomcat 6.0.29 using more and more RAM until it collapses?
Date Fri, 12 Nov 2010 16:19:58 GMT
Great advice, thanks!!!! 
I'm using it right now, and I'm also using www.yourkit.com as a trial.
My problem is in the "Tenured/Gen" area. There is where most of the RAM is
getting used. Now I need to fin out what "Tenured/Gen" is about....

> -----Original Message-----
> From: Pid [mailto:pid@pidster.com]
> Sent: Friday, November 12, 2010 03:49 AM
> To: Tomcat Users List
> Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses?
> 
> On 12/11/2010 05:54, Brian wrote:
> > Hi Pid,
> >
> > I did it, but shows no results.
> > Anyway, it was nice to learn about Jconsole.
> >
> > Now I wonder what is the tool I could use to inspect the objets inside
> > my app, and see which ones are using all the memory.
> 
> Try VisualVM, another JDK6 tool, but a more recent version is available:
> 
>  http://visualvm.dev.java.net/
> 
> There are extra plugins available from the Tools menu.
> 
> You can use profiling on local JVM processes to see which classes are
using
> memory, CPU time.  Or take a series of heap dump and import, examine them.
> 
> 
> p
> 
> 
> >> -----Original Message-----
> >> From: Pid [mailto:pid@pidster.com]
> >> Sent: Thursday, November 11, 2010 03:06 PM
> >> To: Tomcat Users List
> >> Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses?
> >>
> >> On 11/11/2010 18:54, Brian wrote:
> >>> I don't think my app is taking all this RAM, because when I restart
> >>> it, the RAM usage doesn't go down. It does only if I restart Tomcat
> >>> itself, instead of my app running there.
> >>
> >> Yes, this is a classic sign of a problem with the app.
> >>
> >> Reboot Tomcat, restart your app a couple of times (this bit is
important).
> >>
> >> Connect to the Tomcat instance using JConsole, navigate the MBeans,
> >> to
> > Catalina
> >>> Hosts > (your hostname), then select the Operations tab, under which
> > you'll
> >> see a button called "findReloadContextMemoryLeaks".
> >>
> >> Push the button.
> >>
> >> It will return a list of app names if Tomcat can detect ones with
> >> memory
> > leaks.
> >>
> >> NB  No results doesn't necessarily mean your app isn't leaking.
> >>
> >>
> >> p
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@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