Re: Help: Tomcat crashes on java.lang.OutOfMemoryError
- From: Gerbrand van Dieijen <twistedmnd@xxxxxxxxxxx>
- Date: Tue, 31 May 2005 22:44:10 +0200
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.
.
- References:
- Help: Tomcat crashes on java.lang.OutOfMemoryError
- From: Cathy Hui
- Help: Tomcat crashes on java.lang.OutOfMemoryError
- Prev by Date: Help: Tomcat crashes on java.lang.OutOfMemoryError
- Next by Date: JUNIT very slow.......
- Previous by thread: Help: Tomcat crashes on java.lang.OutOfMemoryError
- Next by thread: JUNIT very slow.......
- Index(es):
Relevant Pages
|