2012-10-21 110 views
1

我在debian服務器上運行grails應用程序(grails 2.1.1)。應用程序啓動並運行良好,直到停止,終端上只有「bad」字樣。沒有錯誤,沒有堆棧跟蹤報告。有沒有人遇到過這個問題?這是什麼意思?Grails 2.1.1。退出時出現錯誤「bad」

服務器相當大(32GB RAM和128GB加密SSD,8個內核),所以我懷疑應用程序資源耗盡。

從插件開始,我只使用預先打包的插件並使用緩存(控制器+ ehcache的標準RAM緩存)。

我已經嘗試了「grails prod run-app」,「grails prod run-war」,所以它們分別發生在Jetty和Tomcat上。

我非常感謝幫助或提示。

+0

grails 2.2.1?你的意思是2.1.1? –

+0

對不起,我的意思是2.1.1,編輯 – dsky

+0

我記得這個錯誤,我認爲這是由於一個插件,你的應用程序的插件列表是什麼? – fixitagain

回答

0

您的意思是說您使用「grails」命令在生產環境中運行應用程序?你應該部署到Tomcat(或碼頭或其他一些「應用程序服務器」)

這可能是這裏的「壞」會從印刷: https://github.com/grails/grails-core/blob/master/grails-plugin-tomcat/src/main/groovy/org/grails/plugins/tomcat/IsolatedWarTomcatServer.groovy#L92

也許默認端口被保留。嘗試在另一個端口上運行grails。將「grails.server.port.http = 8181」添加到BuildConfig.groovy以在端口8181上啓動http。

+0

您可以使用http:// grails。 org/plugin/standalone插件在嵌入式tomcat(或jetty)上運行grails。 –

+0

獨立提示超級,非常感謝你!它現在完美地工作。如果失敗的話,應該從grails中刪除run-war。 – dsky

+0

我剛剛遇到了Grails 2.2.4。以下是相關資源的鏈接:https://github.com/grails/grails-core/blob/v2.2.4/grails-plugin-tomcat/src/main/groovy/org/grails/plugins/tomcat/IsolatedWarTomcatServer。常規#L92 –

相關問題