Tomcat 试图在服务器上启动卡桑德拉,我出错了

Tomcat 试图在服务器上启动卡桑德拉,我出错了,tomcat,cassandra,Tomcat,Cassandra,我正在尝试在我的服务器上启动cassandra(基于Linux并使用tomcat),但出现以下错误: Error occurred during initialization of VM The size of the object heap + VM data exceeds the maximum representable size 我的服务器只有512MB的RAM,我正在为catalina使用以下配置: JAVA_OPTS="-Djava.awt.headless=true -Dfil

我正在尝试在我的服务器上启动cassandra(基于Linux并使用tomcat),但出现以下错误:

Error occurred during initialization of VM
The size of the object heap + VM data exceeds the maximum representable size
我的服务器只有512MB的RAM,我正在为catalina使用以下配置:

JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms128m -Xmx384m -XX:PermSize=64m -XX:MaxPermSize=128m"

谢谢您的帮助。

在cassandra conf目录中,您有一个cassandra-env.sh文件 您应该在那里更新堆定义值

#MAX_HEAP_SIZE="4G"
#HEAP_NEWSIZE="800M"
删除备注并将您的尺码放在那里

尝试解决类似问题。