Tomcat 无法在 CentOS 上启动

Tomcat 无法在 CentOS 上启动

Tomcat 6 通过 yum 安装。当我尝试启动它时,catalina.out 包含:

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

我已经下载了 .zip 格式的 tomcat 并运行它 - 一切正常,但我需要使用来自 repo 的 tomcat 安装,并且运行 java 时

答案1

看来堆大小比你的系统内存要大。

  Run the JVM with -XX:MaxHeapSize=256m (or any big number), and possibly -Xmx512m

相关内容