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

时间:2012-02-08 05:16:34

标签: tomcat grails jetty

我正在部署到我正在使用Tomcat 7的VPS,我看到很多投诉部署了最多的Barebones grails app,例如:

  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专用和2 GB突发,我经常只是重新部署WAR文件而耗尽内存。例如。当我运行Tomcat stop命令时,我得到:

 java.lang.OutOfMemoryError: PermGen space

在停止。

所以,我想知道是否有人可以给我一个指针,看看我是否可以在他们的经验中看到Jetty的问题。我的最终网络应用程序不会是一个非常大/重的交通网站。

1 个答案:

答案 0 :(得分:2)

它的known Tomcat issue非常频繁地发生(实际上我没有看到任何没有这种问题的应用程序)。这意味着您的应用程序出现了问题,或者(更常见)您的应用程序正在使用的库。有一个众所周知的错误列表' - http://wiki.apache.org/tomcat/OutOfMemory

顺便说一下,有时在部署时重启Tomcat要容易得多,而不是使用热部署。