Re: Help: Tomcat crashes on java.lang.OutOfMemoryError



Cathy Hui schreef:
> I am running an application (i.e. Remedy Midtier) on Tomcat. Currently
> I run into the "java.lang.OutOfMemoryError" when performing some
> activities from the browser when accessing this application.
> Basically, the Tomcat crashes when the java process takes about 160MB -
> 190MB memory usage (I did monitor the "top" for system resources)
>

Hello,

You might try to use a profiler.
I'm recently used JProfiler (http://www.jprofiler.com) that was quite
easy to use.
You can view the heap-memory and see what objects are created and/or
garbage collected. If there's steady increase, this might indicate a
memory-leak.

Also, you might look into the source code for code that might use a lot
of memory without freeing it (well pretty obvious maybe). Static objects
(lists) might be a problem. Also, objects that are stored in sessions
could be a problem, if there are a lot of users to the webapplication.
.



Relevant Pages