tomcat

Invalid initial heap size: -Xms512m-Xmx1024m
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

启动tomcat,出现PermGen space 提示;启动tomcat,出现Could not create the Java virtual machine的
这两个问题都是和环境变量配置有关系
JAVA_OPTS=-server -Xms512m -Xmx768m -XX:PermSize=128m -XX:MaxPermSize=128m
修改MaxPermSize的值,比如变为256,只要比persize大就好

----server.xml

enableLookups="false" redirectPort="8443" acceptCount="100"

connectionTimeout="20000" disableUploadTimeout="true" URIEncoding="UTF-8" />

你可能感兴趣的:(tomcat,启动,Error:,Could,not,create,the,Java,Virtual,Machine错误解决)