I am using Apache tomcat 7.02 as a server.I created an application using sphinx4 and deployed it on apache tomcat server.Since this Sphinx4 application requires a lot of memory to execute.So for that purpose i alloted lot of memory as java Heap space(export CATALINA_OPTS="-Xms1536m -Xmx1536m"). The Server on which i have deployed the server is a 64bit System with Debian Lenny on it,along with 2Gb of RAM. I created a Servlet,post data to it,get the results... When i run it for 10 users it takes about 8 minutes to process but if i run it for 100 users simultaneously,thn it shows this on tomcat status
Free memory: 37.0 MB Total memory: 1484.81 MB Max memory: 1484.81 MB
I also tried using System.gc(),but it did no gud.So is there any way through which i can check the memory status of JVM and free it when needed?