You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2004/07/14 15:06:10 UTC

RE: out of memory, GC doesn't cleaning up

Hi,
Use a Profiler to see what objects keep references to data you think
should be garbage-collected.

I'd also suggest scrapping most your extensive memory tuning settings
for now, unless you're absolutely sure they're perfect.

Yoav Shapira
Millennium Research Informatics


>-----Original Message-----
>From: Futchi [mailto:msafadi@massar.com]
>Sent: Wednesday, July 14, 2004 9:44 AM
>To: Tomcat Users List
>Subject: out of memory, GC doesn't cleaning up
>
>Hi all,
>            I am running an app. with several threads running in the
>background; these threads are simply loading data into the servlet
>context, and writing files out streams.
>
>A thread updating 5 parameters in the servlet context
>A thread writing each of these parameters to a new file
>
>Both threads sleeps for only 1 second.
>
>In each cycle I am closing and flushing the out streams, and assign
null
>to all objects
>
>While monitoring the memory usage, I can see it just increasing, until
>the JVM reach the max size of the memory
>
>
>Catalina.bat JAVA_OPTS
>
>set JAVA_OPTS=-server -Xms256m -Xmx256m -XX:NewSize=64m
>-XX:MaxNewSize=128m -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=5
>-XX:TargetSurvivorRatio=75 -XX:PermSize=32m -XX:MaxPermSize=32m
-Xss128k
>-XX:+DisableExplicitGC -verbose:gc
>
>
>I searched java.sun.com but did not find any indication or help docs to
>this error, please help
>
>
>



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org