UPDATE:
I recently ran into a similar problem. Sometimes, when a web application is poorly programmed, it may not properly clean the network sockets (TCP) ... for example, database connection classes. Promoting too many open file systems on a host (Tomcat JVM). And this can lead to the fact that you are responsible.
So, in my case, I solved the problem by creating a connection to the database over the stream using generic. This is managed in my bean web application service .:
private static ThreadLocal<YourConnectionClass> connection = new ThreadLocal<YourConnectionClass>(); public static YourConnectionClass getConnection(){ if (connection.get() == null) connection.set(driver.getConnection()); return connection.get(); }
This ensures that only one TCP socket will be open in the tomcat executor thread. If this problem applies to you, you will add a similar fix to the one I mentioned, your problems will go away. well, but it's still just a “hunch”. You can check if this applies to you by simply entering this in the unix / linux server console:
netstat | grep <YOUR_TCP_PORT>
or using lsof (list of open files). Because TCP sockets are treated as open file descriptors.
lsof <YOUR_JVM_PID>
If the number of open sockets after starting tomcat is less or less, and on the other hand, is destructive when there is a problem with your responsibility, then you may have a leak in the handle of the open socket file.
As a second assumption, you can also have a HashTable memory leak, which can be caused even in Java if you incorrectly clean the HashTable of Java objects (somewhere in the web application server code). But, as I can read the comments above, perhaps this is not so.
amuses
will be
My older answer is:I set my garbage collection strategy.
Try using another by installing the correct OPTS JVM:
-XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:SurvivorRatio=2 -XX:NewRatio=8
Check links:
http://www.petefreitag.com/articles/gctuning/
http://www.idevelopment.info/data/Programming/java/miscellaneous_java/Java_Options_For_Garbage_Collection.html