1

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

niaher
  • 9,460
  • 7
  • 67
  • 86
viren
  • 1,073
  • 1
  • 17
  • 41

1 Answers1

2

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.

Community
  • 1
  • 1
Stephen C
  • 698,415
  • 94
  • 811
  • 1,216