我最近被一所使用 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.
--------------------------------------------------------