We are using tomcat 6.0.16 and we are facing memory issues with it. There is only one webapp and axis2 webservice deployed on the server. The server is having 6GB RAM and we are allocating heap space of 3GB to tomcat server but still its getting memory issues.
I am providing following java options in catalina.sh
I checked with the jconsole profiler and found that the memory increases to 3GB and then suddenly drops to 1.3-1.5GB and then again increases. The CPU usage, number of threads and classes are nearly constant.
We are suspecting that memory is not getting released continuously and thats why when it reaches to Max, its forcefully calling GC and releasing all the memory(nearly 1.5 GB)
Please look into the attached profiler screenshot for more details. Can anybody help me to resolve this issue?
I am facing this exception when the server memory usage increases...
EVERE: Socket accept failed
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
Oct 15, 2009 8:20:32 AM org.apache.tomcat.util.net.JIoEndpoint$Acceptor run
SEVERE: Socket accept failed