You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Randy Layman <ra...@aswethink.com> on 2001/12/18 18:06:50 UTC
RE: Ever increasing heap size with Tomcat 3.2.3 !!!
> -----Original Message-----
> From: Hawkins, Keith (Keith) [mailto:kphawkins@avaya.com]
> Sent: Tuesday, December 18, 2001 12:34 PM
> To: tomcat-dev@jakarta.apache.org; 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: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>