0

我最近被一所使用 Tomcat 和 Railo 的大学聘用。

大多数情况下,Railo 运行良好,但偶尔 railo 会冻结并停止渲染任何 CFM 或​​ CFC 页面,并且只会给出 502 错误。通常这可以用 解决service railo_ctl restart,但最近出现了更多错误:

 * Shutting down Railo: Sep 18, 2013 11:06:55 AM org.apache.catalina.startup.Catalina stopServer
SEVERE: Catalina.stop:
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:457)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:371)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:452)

Tomcat did not stop in time. PID file was not removed.
. . . . . . . . . . . . . . . . . . . . [FAIL]
 * The Tomcat/Railo process is not responding. Forcing shutdown...
 * Forcing Railo Shutdown: [DONE]
 * Starting Railo:  * Allow Tomcat to open more than 1024 files: . . . [DONE]
--------------------------------------------------------
It may take a few moments for Railo to start processing
CFML templates. This is normal.
--------------------------------------------------------

和:

* Shutting down Railo: Tomcat did not stop in time. PID file was not removed.
. . . . . . . . . . . . . . . [DONE]
 * Starting Railo:  * Allow Tomcat to open more than 1024 files: . . . [DONE]
--------------------------------------------------------
It may take a few moments for Railo to start processing
CFML templates. This is normal.
--------------------------------------------------------
4

1 回答 1

2

这个错误意味着Tomcat进程本身已经崩溃。该脚本尝试连接到 tomcat 关闭端口(通常为 8005) - 但由于 tomcat 已崩溃,它无法连接。因此,“连接被拒绝”错误。

对于 PID 文件,railo_ctl 脚本只是检查位于 PID 文件中的进程 ID。由于该进程已终止,PID 文件不再相关,脚本将采用默认操作来处理它。

您特别需要做的是找出 Tomcat 崩溃的原因。检查 catalina.out 日志文件 - 因为它是 Tomcat 崩溃原因的最佳线索来源。

希望这可以帮助!

于 2013-09-18T20:55:19.253 回答