【问题标题】:tomcat stopping error on server using putty使用腻子在服务器上停止tomcat错误
【发布时间】:2014-03-21 08:57:45
【问题描述】:

我在使用 putty 停止服务器中的 tomcat 服务时遇到错误

错误是

`[root@vps ~]# 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.

` 请帮忙...

【问题讨论】:

    标签: java centos tomcat7 putty vps


    【解决方案1】:

    尝试增加 java 的堆内存使用量。 您可以通过编辑 catalina.bat(适用于 Windows)和 catalina.sh(适用于 Linux)来实现。

    尝试编辑 JAVA_OPTS。

    对于 Linux 导出 JAVA_OPTS="-server -Xmx512m"

    对于 Windows 设置 JAVA_OPTS=-server -Xmx512m

    【讨论】:

      【解决方案2】:

      你需要查看你的tomcat的内存设置,帮助设置堆大小看看

      Increase Tomcat memory settings

      看看关于内存大小的问题

      Could not reserve enough space for object heap

      【讨论】:

        猜你喜欢
        • 2012-12-04
        • 2018-01-20
        • 2015-11-18
        • 1970-01-01
        • 1970-01-01
        • 2018-07-18
        • 2014-01-02
        • 2014-01-18
        • 1970-01-01
        相关资源
        最近更新 更多