tomcat - 安装期间 ToolTwist Controller 中的 OutOfMemoryError

标签 tomcat jenkins tooltwist

在使用 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/

相关文章:

java - 通过Groovy脚本从 Artifactory 获取用于多个作业的最新内部版本号。

tomcat - 无法处理 TLD 文件的 JAR [jar :jndi:/localhost/ttsvr/WEB-INF/lib/activation. jar!/null]

java - 在 OpenShift 上托管时无法找到 apache 公共(public)上传库

tomcat - 检索文件访问的本地 Tomcat 路径

mysql - 将数据库服务器与 Tomcat 服务器分开设置会对整体性能产生影响

java - Hibernate抛出org.hibernate.service.spi.ServiceException

testing - 让 Jenkins 像 Selenium IDE 一样运行

jenkinsfile 参数属性在初始分支创建时未在 jenkins 服务器中配置