在使用 Controller 安装我的项目时,出现以下错误。
Starting transmission...
Bundle 1 (4kb = 1 installs, 23 deletes)
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at tooltwist.fip.FipBatchOfUpdates.<init>(FipBatchOfUpdates.java:50)
at tooltwist.fip.FipServer.source_getRequestedUpdates(FipServer.java:214)
at tooltwist.fip.FipThisMachineServerProxy.askForUpdates(FipThisMachineServerProxy.java:53)
at tooltwist.fip.Fip.processUpdatesAndDeletes(Fip.java:493)
at tooltwist.fip.Fip.installFiles(Fip.java:352)
at tooltwist.controller.util.InstallerUtil.install(InstallerUtil.java:376)
at tooltwist.controller.util.InstallerUtil.main(InstallerUtil.java:57)
Sorry, the install failed.
Finished with status false
最佳答案
如果您有一个非常大的项目,您可能需要增加 extension-projects/ttc_t/config/bin/installLaunchpad 中 JAVA_OPTS 的默认值。默认为 256mb,但您可以根据需要增加。 Controller 使用 FIP,它不需要与正在部署的项目成比例的内存,因此适度增加应该可以正常工作。
JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=32m"
关于tomcat - 安装期间 ToolTwist Controller 中的 OutOfMemoryError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11424351/