> -----Original Message-----
> From: Hawkins, Keith (Keith) [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 18, 2001 12:34 PM
> To: [EMAIL PROTECTED]; tomcat-user
> Subject: Ever increasing heap size with Tomcat 3.2.3 !!!
> 
> 
> 
> Are there known issues with Tomcat and heap size??

No.
> 
> Doing a web search revealed numerous posts with people having similar
> problems so I believe there is a problem.   The standard 
> response these
> people receive is to increase the heap size via -Xmx   But that seems
> like a band-aid rather than a real solution.   That just delays the
> inevitable.

The problem is always that they are holding onto memory that they don't
realize they are holding on to, or are expecting to be garbage collected but
can't for whatever reason.

        Here are some suggestions on where to look:
        1.  Don't use class variables in servlets or JSPs
        2.  Be careful with sessions.  Setting the inactive timeout to
nothing allows the sessions to stay around until the server is reset, and
sessions last for some time after the last request
        3.  Understand that it anything has a reference to an object (list,
map, array) then it can't be garbage collected
        4.  Use a program like OptimizeIT! to find your memory leak


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to