java - Why is Tomcat not reserving minimum heap space -
I am running tomcat 6 on Linux and setting XMS and XMX in setenv.sh I am After starting the Talkcat server, I do not see the memory usage specified in the XMS at least. Showing free-m 1500 before startup CATALINA_OPTS: -Xms512m -Xmx1024m In my startup.sh I can see the memory settings / Pre> After the server startup, the free memory is showing Free-M at least 512 M, why free storage has not been reduced? Showing jinfo 14064 VM flag: -Xms512m-Xmx1024m jmap -heap also shows that the memory settings are applied pile configuration: minhaffererarero = 40 MaxFreeRRTO = 70 MaxHap Size = 1073741824 (1024.0 MB) Am I missing anything? free-M command Will show free RAM. RAM memory and virtual memory are different. The actual initial stack size and maximum stack size can be allocated by a heap. Add the following jvm logic-class to the following commands: Restart the GC and the server after restarting the server and after starting the verbose log ...