I have currently a Linux Server with Java 1.6 and Apache Tomcat/6.0.18 with 512 Mb memory. I am currently hosting one webapp but I plan to move three more applications to this Tomcat instance.
My setenv.sh file is:
JAVA_OPTS="-Xms16m -Xmx256m -XX:MaxPermSize=128m -Djava.awt.headless=true"
When I execute free -m
total used free shared buffers cached
Mem: 512 461 51 0 60 52
-/+ buffers/cache: 348 164
Swap: 127 3 124
Sometimes the used memory goes up until 506 or so.
I guess I have to upgrade the memory. I was thinking about 800 Mb or a 1 Gb. Do you think is a good idea? Will I see the improvent? How should I configure my seteven.sh file after the upgrade?