2014-02-20 31 views
0

我在使用膩子在服務器停止Tomcat服務得到錯誤的服務器停止錯誤tomcat的使用膩子

誤差

`[[email protected] ~]# service tomcat7 stop 
Shutting down Tomcat7: 
Using CATALINA_BASE: /usr/tomcat7 
Using CATALINA_HOME: /usr/tomcat7 
Using CATALINA_TMPDIR: /usr/tomcat7/temp 
Using JRE_HOME:  /usr 
Using CLASSPATH:  /usr/tomcat7/bin/bootstrap.jar 
/usr/tomcat7/bin/tomcat-juli.jar 
Error occurred during initialization of VM 
Could not reserve enough space for object heap 
Error: Could not create the Java Virtual Machine. 
Error: A fatal exception has occurred. Program will exit. 

` 請幫助...

回答

0

嘗試增加堆Java的內存使用情況。 您可以通過編輯catalina.bat(對於Windows)和catalina.sh(對於Linux)來執行此操作。

嘗試編輯JAVA_OPTS。

對於Linux 出口JAVA_OPTS = 「 - 服務器-Xmx512m」

對於Windows 集JAVA_OPTS = -server -Xmx512m