Tomcat memory usage on Linux
I am running data intensive application on CentOS with tomcat 5.5, jdk1.5 and My Sql. I found that after running some JSPs , if I keep the system idle for some time memory usage readings are not coming down. To check if it a code problem, I created application with simple login functionality(Simple JSP and servlet) and tried to note memory usage on CentOS(rss readings) and Windows.
I found that, in Linux usage goes up upto certain limit, but after this if I keep system idle still this memory reading is not coming down. While in windows it comes down after some time.
Is there any setting for garbage collection? Exactly what should I do to resolve this issue? Because on production system if I load test the application it starts using swap memory and eventually tomcat hangs.