java - 如果我将 jenkins.war 和 nexus.war 放在一起,Tomcat 7 无法工作

标签 java jenkins tomcat7 nexus

全部
我使用 Tomcat 7。并且我已将“set CATALINA_OPTS=-Xms2048m -Xmx4096m”设置到 tomcat_home/bin 文件夹中的 catalina.sh 中。
然后我将 jenkins.war 和 nexus.war 放入 webapp/文件夹中。但我无法访问它们。
但是当我删除 nexus.war 时,一切正常。
你能帮助我吗 ?我的 jenkins 和 Nexus war 文件都是最新的。
谢谢
史蒂文

这是日志:

INFO: Loaded all jobs
6136 Exception in thread "pool-8-thread-2"
6137 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-2"
6138 Exception in thread "ContainerBackgroundProcessor[StandardEngine[Catalina]]"
6139 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ContainerBackgroundProcessor[StandardEngine[Cata     lina]]"
6140 Exception in thread "pool-8-thread-7"
6141 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-7"
6142 Exception in thread "pool-8-thread-3"
6143 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-3"
6144 Exception in thread "pool-8-thread-6"
6145 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-6"
6146 Exception in thread "pool-8-thread-4"
6147 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-4"
6148 Exception in thread "pool-8-thread-8"
6149 Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "pool-8-thread-8"

最佳答案

您在 catalina.bat/Catalina.sh 中添加 JAVA_OPTS

set JAVA_OPTS="-Xms1024m -Xmx10246m -XX:NewSize=256m -XX:MaxNewSize=356m -XX:PermSize=256m -XX:MaxPermSize=356m"

根据您的计算机配置指定值。

关于java - 如果我将 jenkins.war 和 nexus.war 放在一起,Tomcat 7 无法工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20770818/

相关文章:

jenkins - java.lang.NoSuchMethodError : No such DSL method '$' found among steps

apache2 - Web 策略代理的重定向循环问题?

servlets - 如何修复 Tomcat 访问请求的资源被拒绝的问题?

java - 您可以使用 BufferedWriter 选择要写入的行吗?

Java 扩展运算符

java.io.IOException : [DeploymentService:290066]Error occurred while downloading files from Administration Server for deployment request

java - 在 Ubuntu 上作为守护进程运行时,如何给 Jenkins 更多的堆空间?

java - 从实体类填充 gui 类中的 jlist

java - LMAX 颠覆器如何用于股票市场?

java - 如何在开始测试之前运行tomcat