![Tomcat 无法在 CentOS 上启动](https://linux22.com/image/803061/Tomcat%20%E6%97%A0%E6%B3%95%E5%9C%A8%20CentOS%20%E4%B8%8A%E5%90%AF%E5%8A%A8.png)
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