1
我目前部署到我使用Tomcat 7中,其中一個VPS和我看到很多抱怨的部署最準系統的Grails應用程序運行,如:的Grails 2.0 - 在碼頭上運行,在Tomcat中
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.
此外,我經常耗盡內存只是重新部署一個WAR文件,即使我有1GB獨立和2 GB突發。例如。當我運行Tomcat停止命令時,我得到:
java.lang.OutOfMemoryError: PermGen space
停止。
所以,我想知道如果任何人都可以給我一個指針,以我是否會看到他們的經驗與碼頭少的問題。我的最終網絡應用程序不會是一個非常大/繁忙的交通網站。
我想我很驚訝有這些類型的錯誤最裸露的骨頭(Grails的)應用程序。你知道Jetty和Tomcat的比較嗎? – Ray 2012-02-08 06:57:21
是的,即使簡單的應用程序也可能有這樣的問題(對我來說 - 這是Tomcat的錯)。我只使用Jetty進行開發,並且可以在那裏推薦它,並且從不在生產中使用Jetty,但是我聽到很多次它運行良好。 – 2012-02-08 07:06:26
......那麼爲什麼人們會使用Tomcat?因爲它「更老,更成熟」? – Ray 2012-02-08 07:31:53