Tomcat with JAVA_OPTS fail to start

时间:2015-09-14 15:26:21

标签: tomcat java-opts

this is the memory i have on my server (from webmin page) :

Operating system Debian Linux 7 Webmin version 1.760 Kernel and CPU Linux 3.2.0-4-686-pae on i686 Processor information Intel(R) Xeon(R) CPU E5620 @ 2.40GHz, 2 cores Real memory 698.57 MB used, 7.92 GB total Virtual memory 0 bytes used, 2.07 GB total Local disk space 5.51 GB used, 47.17 GB total

and this is the JAVA_OPTS that i have into the startup script of tomcat :

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms2048m -Xmx2048m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC";

so i have a server with 8Gb RAM, but if I change the -Xmx2048m parameter to a larger value (for example 3072m) tomcat fails to start with a "not enough memory.."

I cannot understand why..

0 个答案:

没有答案