tomcat - 部署上下文 tomcat 时出错

标签 tomcat amazon-ec2 openbravo

我正在尝试运行一个名为 Openbravo 的开源 ERP 软件,我正在使用亚马逊 EC2 网络服务。我使用 ssh 通过 VMWare 终端成功登录到系统。那部分一切顺利。但是当我执行以下命令来停止和重新启动 tomcat 服务时,我在 Deploying context [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

最佳答案

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

关于tomcat - 部署上下文 tomcat 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32013311/

相关文章:

java - Eclipse 错误上的 Tomcat Apache 6 服务器

tomcat - 是否需要所有tomcat端口

regex - awk:计算tomcat日志中的错误

amazon-web-services - Kubernetes/kops : error attaching EBS volume to instance. 您无权执行此操作。错误 403

java - Openbravo.log : java. lang.OutOfMemoryError: PermGen 空间

tomcat - 在 Ubuntu Trusty 上安装 Openbravo

eclipse - 无法更改tomcat url

tomcat - 在 Amazon EC2 中使用 tomcat 的 Spring 安全登录 https 无法正常工作

amazon-ec2 - Ansible 亚马逊 EC2。 key 对不存在

java - Openbravo POS - 添加新按钮