Skip to content


Java虚拟机的最大内存限制

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

tail /opt/tomcat/logs/catalina.out

  1. Could not create the Java virtual machine.
  2. Error occurred during initialization of VM
  3. Could not reserve enough space for object heap
  4. Could not create the Java virtual machine.
  5. Error occurred during initialization of VM
  6. Could not reserve enough space for object heap
  7. Could not create the Java virtual machine.

反复调试到3650M可以起来

  1. CATALINA_OPTS='-Xms2800m -Xmx3650m'
  2. 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.