gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 23:26:51 25 4
gpt4 key购买 nike

我“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"

有什么问题吗?

最佳答案

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

关于java - Openbravo.log : java. lang.OutOfMemoryError: PermGen 空间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35940303/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com