Could not reserve enough space for object heap

后端 未结 26 1609
余生分开走
余生分开走 2020-11-22 05:59

I am getting the following exception repeatedly each time I try to run the program.

Error occurred during initialization of VM

Could not reserve e

26条回答
  •  时光取名叫无心
    2020-11-22 06:50

    In CASSANDRA_HOME/bin/cassandra.bat you would find following configuration

    REM JVM Opts we'll use in legacy run or installation
    set JAVA_OPTS=-ea^
     -javaagent:"%CASSANDRA_HOME%\lib\jamm-0.3.0.jar"^
     -Xms**2G**^
     -Xmx**2G**^
    

    You can reduce 2G to some smaller number for e.g. 1G or even lesser and it should work.

    Same if you are running on unix box, change in .sh file appropriately.

提交回复
热议问题