Skip to content


Java虚拟机的最大内存限制

tomcat有内存限制,增加内存后可能会起不来.

tail /opt/tomcat/logs/catalina.out

Could not create the Java virtual machine. Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

反复调试到3650M可以起来

CATALINA_OPTS=’-Xms2800m -Xmx3650m’ JAVA_OPTS=’-Xms2800m -Xmx3650m

系统环境 centos5.2 64bit 8G mem 2G swap

java version “1.6.0” OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK 64-Bit Server VM (build 1.6.0-b09, mixed mode)

Posted in Tomcat, 技术.

Tagged with , .


No Responses (yet)

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.