2012-08-08 41 views
0

我想我的服务器上启动卡桑德拉(基于Linux和使用Tomcat)错误,我得到了以下错误:试图laucnh卡桑德拉上的服务器,我得到

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" 

感谢您的帮助。

+1

尝试以HTTP:// zefonseca .com/blogs/zen/resolved-jvm-problem-apache-cassandra-failure-to-start-up/for a solution for a similar problem。 – 2012-08-08 11:27:15

回答

1

在卡桑德拉conf目录下,你有一个cassandra-env.sh文件 您应该更新有堆定义值

#MAX_HEAP_SIZE="4G" 
#HEAP_NEWSIZE="800M" 

取出的话,把你的尺寸有