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 18:13:45 GMT
I found the problem.... and this time it wasn't my fault!  :-)
I used a profiler (www.yourkit.com) and took a snapshot of all the objects
in the JVM. I found that tons of RAM is being used by images of my delivered
http responses. I mean, I have thousands of static HTML pages in my site. It
seems that Tomcat is saving their content in the memory, as a cache, in
thousands of objects. 

That was the hardest part, to find out that. Now I wonder where do I
configure Tomcat to stop doing this, or at least to reduce the cache.....



> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Thursday, November 11, 2010 02:11 PM
> To: Tomcat Users List
> Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses?
> 
> From: Brian [mailto:bbprefix-mail@yahoo.com]
> > Subject: Tomcat 6.0.29 using more and more RAM until it collapses?
> 
> > I don't think my app is taking all this RAM
> 
> It is.
> 
> > when I restart it, the RAM usage doesn't go down.
> 
> Classic symptom of a webapp leaking memory due to holding onto
> 
> > It seems like if Tomcat is leaving garbage in the JVM or something
> > like that.
> 
> Nope - it's your webapp.
> 
> > Does anybody know what should I do to solve this?
> 
> Fix your webapp(s).  Start with a heap profiler, and look to see what's
> consuming the space.  The problem may also include memory leaks outside of
> the heap, such as failing to close files, or starting and forgetting about
auxiliary
> threads.
> 
> Start reading here:
> http://wiki.apache.org/tomcat/FAQ/Memory
> http://wiki.apache.org/tomcat/OutOfMemory
> http://wiki.apache.org/tomcat/MemoryLeakProtection
> 
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
> PROPRIETARY MATERIAL and is thus for use only by the intended recipient.
If
> you received this in error, please contact the sender and delete the
e-mail and its
> attachments from all computers.
> 
> 
> ---------------------------------------------------------------------
> 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