繁体   English   中英

如果将jenkins.war和nexus.war放在一起,则Tomcat 7无法正常工作

[英]Tomcat 7 did not work if I put jenkins.war and nexus.war together

所有
我使用Tomcat7。并且已经在tomcat_home / bin文件夹的catalina.sh中将“ set CATALINA_OPTS = -Xms2048m -Xmx4096m”设置为“ catalina.sh”。
然后,将jenkins.war和nexus.war放入webapp /文件夹中。 但是我都无法访问它们。
但是,当我删除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"

根据您的机器配置指定值。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM