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

时间:2016-03-11 12:27:56

标签: java tomcat out-of-memory openbravo

我" ant install.source" Openbravo,然后" ant war",将.war放到/ opt / tomcat / webapps,重新设置tomcat服务。 " catalina.out中"表示:

org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/examples
org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [9,302] milliseconds.
org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory /opt/tomcat/webapps/examples has finished in 10,126 ms
org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory /opt/tomcat/webapps/openbravo
org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"

仅此而已,openbravo.out说:

**Initializing in-memory model...
org.openbravo.base.model.ModelProvider - Building runtime model
org.openbravo.dal.core.DalLayerInitializer - Model read in-memory, generating mapping...
ERROR org.hibernate.proxy.pojo.BasicLazyInitializer - Javassist Enhancement failed: org.openbravo.model.common.order.Order
java.lang.RuntimeException: by java.lang.OutOfMemoryError: PermGen space**

以下是/etc/systemd/system/tomcat.service中的CATALINA_OPTS

CATALINA_OPTS="-Djava.awt.headless=true -Djava.library.path=/usr/lib/ -Xms384M -Xmx1536M -server -XX:MaxPermSize=1024M -XX:+DisableExplicitGC -XX:CompileCommand=exclude,net/sf/jasperreports/engine/export/JRGridLayout,horizontallyMergeEmptyCells"

它出了什么问题?

1 个答案:

答案 0 :(得分:0)

解决。 刚开始使用java 1.8而不是1.7