Error occurred during initialization of VM Could not reserve enough space for ob

       At noon today, my colleague asked me to restart the dev project I was responsible for, and then ssh connected to the dev server, entered the data/deploy/ directory, ran the ./mkd.sh script, and did not see the service through ps -ef |grep xxx process. Through the cd /data/Application/xxxx/log/ directory, check the log log and see:

Error occurred during initialization of VM

Could not reserve enough space for object heap



 Baidu a bit, probably means that the space of the VM is insufficient, so I modified this line in the catalina.sh script:

JAVA_OPTS='-Xms1024m -Xmx1024m -XX:PermSize=512M -XX:MaxPermSize=512M -Ddruid.registerToSysProperty=true -Dactive.schedule.start=1'

Restart the service after modification, success

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326133061&siteId=291194637