Monday, March 9, 2015

Starting elasticsearch "Too small initial heap for new size specified"

When starting elasticserach for the first time I received the following error:


Error occurred during initialization of VM
Too small initial heap for new size specified


Added the following to elasticsearch.bat


set JAVA_OPTS=-Djava.awt.headless=true -Dfile.encoding=UTF-8 -server -Xms1536m -Xmx1536m -XX:NewSize=1024m -XX:MaxNewSize=1024m -XX:PermSize=768m -XX:MaxPermSize=768m -XX:+DisableExplicitGC

No comments:

Post a Comment