gpt4 book ai didi

tomcat - grails 2.0 - 在 Jetty 中运行,在 Tomcat 中运行

转载 作者:行者123 更新时间:2023-11-28 22:14:24 25 4
gpt4 key购买 nike

我目前正在部署到一个 VPS,我正在使用 Tomcat 7,我看到很多关于部署最准系统 grails 应用程序的投诉,例如:

  SEVERE: The web application [/BareBones-0.1] appears to have started a thread named [Timer-1]  but has failed to stop it. This is very likely to create a memory leak.
Feb 8, 2012 4:32:53 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/BareBones-0.1] appears to have started a thread named [H2 Log Writer PRODDB] but has failed to stop it. This is very likely to create a memory leak.
Feb 8, 2012 4:32:53 AM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
SEVERE: The web application [/BareBones-0.1] appears to have started a thread named [H2 Log Writer PRODDB] but has failed to stop it. This is very likely to create a memory leak.

此外,即使我有 1GB 专用内存和 2GB 突发内存,我经常会在重新部署 WAR 文件时用完内存。例如。当我运行 Tomcat 停止命令时,我得到:

 java.lang.OutOfMemoryError: PermGen space

在停止。

所以,我想知道是否有人可以给我一个指示,说明我是否可以在他们的经验中看到 Jetty 的问题更少。我的最终 Web 应用程序不会是一个非常大/流量很大的网站。

最佳答案

known Tomcat issue ,经常发生(实际上我从未见过没有这样问题的应用程序)。这意味着您的应用程序有问题,或者(更常见)您的应用程序正在使用的库有问题。有一个“众所周知的错误”列表 - http://wiki.apache.org/tomcat/OutOfMemory

顺便说一句,有时在部署时重新启动 Tomcat 比使用热部署要容易得多。

关于tomcat - grails 2.0 - 在 Jetty 中运行,在 Tomcat 中运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9188173/

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