viren
viren

Reputation: 1103

Tomcat Eats up Memory IN VM

I have deployed my web application to Apache Tomcat 6.

This application captures user clicks on all sites on the organization's domain. Because of this, it always has a huge load on its application servers. I have 8 Linux servers running as app servers with 16 GB Ram. My issue is that Tomcat uses up all this RAM and I have to restart these servers every two hours to free up the memory. Could you please suggest any way how I can free up this memory without restarting Tomcat.

I have updated my java_opts= "-server -d64 -Xms6144M -Xmx6145M

Upvotes: 1

Views: 754

Answers (1)

Stephen C
Stephen C

Reputation: 719656

The most likely problem is that your application has one or more memory leaks.

There are numerous resources on how to find memory leaks in Java code. Here is a small selection:

You should only blame Tomcat if you have clear evidence that Tomcat is responsible, and not your application.

Upvotes: 2

Related Questions