部署上下文tomcat时出错

时间:2015-08-14 15:13:46

标签: tomcat amazon-ec2 openbravo

我正在尝试运行名为Openbravo的开源ERP软件,我正在使用亚马逊EC2网络服务。我使用ssh通过VMWare终端成功登录系统。那部分一切都很好。但是,当我执行以下命令来停止并重新启动tomcat服务时,我在部署上下文[fail]时收到错误。 请告诉我您需要哪种日志文件。我有catalina.log的内容

我通过将tomcat.sh Xmx1024M更改为Xmx2048M来增加内存,但仍然出现相同的错误。

# /tmp/hs_err_pid6079.log
CompilerOracle: excludenet/sf/jasperreports/engine/export/JRGridLayout.horizontallyMergeEmptyCells
Aug 14, 2015 2:49:20 PM org.apache.coyote.AbstractProtocol init 
INFO: Initializing ProtocolHandler ["ajp-bio-127.0.0.1-8009"]
Aug 14, 2015 2:49:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1007 ms
Aug 14, 2015 2:49:21 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Aug 14, 2015 2:49:21 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.52 (Ubuntu)
Aug 14, 2015 2:49:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /var/lib/tomcat/webapps/openbravo
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000007b5f4b000, 196608, 0) failed; error='Cannot allocate mem$
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (malloc) failed to allocate 196608 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /tmp/hs_err_pid6733.log

1 个答案:

答案 0 :(得分:0)

检查JVM工作目录所在的分区是否没有空间(或者您受到配额或类似限制)。由于日志文件失控导致磁盘空间紧张,我们将此错误重置了几次:服务器上有足够的可用内存......磁盘空间非常低。