Tomcat Memory Issue

S

Sagar

We are running a web service on Tomcat 6.0 with JDK 1.5.0_12. on a
2003 Windows Server with 2GB memory.

In our load test we nioticed the memory usage for Tomcat gradually
increases. Once it reaches 2 GB, Tomcat crashes. The same
application, which is written in AION language, was tested on our PC's
and it doesn't take more than 25MB of memory.

Also, when we were running the load test, the total of Heap and Non
Heap Memory was never more than 35GB. Also validated GC process was
regularly started.

JVM Committed Memory was the only one which was identical to Physical
Memory Usage.Our assumption was Tomcat Committed Memory will be equal
to the total of Heap and Non Heap memory. Can someone please explain
if there is any process used by Tomcat which is eating up all the
memory?

Any help to fix this issue would be great as we are stuck at this
point.

Thanks,
C.K
 
M

Manish Pandit

We are running a web service on Tomcat 6.0 with JDK 1.5.0_12. on a
2003 Windows Server with 2GB memory.

In our load test we nioticed the memory usage for Tomcat gradually
increases. Once it reaches 2 GB, Tomcat crashes. The same
application, which is written in AION language, was tested on our PC's
and it doesn't take more than 25MB of memory.

Also, when we were running the load test, the total of Heap and Non
Heap Memory was never more than 35GB. Also validated GC process was
regularly started.

JVM Committed Memory was the only one which was identical to Physical
Memory Usage.Our assumption was Tomcat Committed Memory will be equal
to the total of Heap and Non Heap memory. Can someone please explain
if there is any process used by Tomcat which is eating up all the
memory?

Any help to fix this issue would be great as we are stuck at this
point.

Thanks,
C.K

What kind of webservice is it - stateless/stateful/composite ? Is it
transactional ? Is it hitting multiple resources and not releasing
them for some reason?

-cheers,
Manish
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

Sagar said:
We are running a web service on Tomcat 6.0 with JDK 1.5.0_12. on a
2003 Windows Server with 2GB memory.

In our load test we nioticed the memory usage for Tomcat gradually
increases. Once it reaches 2 GB, Tomcat crashes.

Maximum heap is somewhere around 1.6-1.8 GB on 32 bit Windows, so
I assume that it crashes slightly before 2 GB.

The most probably explanation is that there is a memory leak
in your app.

It is a bit difficult to create a memory leak in Java, but it
is possible.

Arne
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top