Friday, September 18, 2015

Tomcat windows click on startup.bat disappering

Start tomcat with catalina.bat run option

C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27\bin>catalina.bat run
Using CATALINA_BASE:   "C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27"
Using CATALINA_HOME:   "C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27"
Using CATALINA_TMPDIR: "C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27\
Using JRE_HOME:        "C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27/
Using CLASSPATH:       "C:\lr\liferay-portal-6.1.20-ee-ga2\tomcat-7.0.27\
Error occurred during initialization of VM
Could not reserve enough space for object heap

You will know the issue why it was disappearing. Fix it based on error accordingly. In this particular case I reduce -XX:MaxPermSize value from 512m to 256m