I have railo 4 set up on a Amazon Micro. No performance issue or any other issues for that matter. CFML works great after a Railo restart but then dies within 24 hours every time. All HTML and PHP file run fine but CFML pages give 503 errors. Even the admin is unreachable. I ssh into the box and restart Railo and all is well for another 24 hours.
My question is where do I start looking to find out what is breaking it. This is on a personal server that gets maybe 20 visits a week so it's not a load issue.
http://cl.ly/image/0E101K1G3x20
I am a long time CFML programmer that has tried to move to Railo or OBD several times and always ran into frustrations with Tomcat or something like that. I really REALLY want to use and like Railo so any help would be appreciated.
I am pretty familiar with Apache. I am very familiar with Linux. I am not familiar with Railo or Tomcat.
Here is whats in the catalina.out
Nov 14, 2012 2:17:46 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [105] milliseconds.
railo-server-root:/opt/railo/lib/railo-server
/opt/railo/lib/railo-server/patches/4.0.0.013.rc
===================================================================
SERVER CONTEXT
-------------------------------------------------------------------
- config:/opt/railo/lib/railo-server/context
===================================================================
Wed Nov 14 14:17:53 UTC 2012-359 using JRE Date Library
Wed Nov 14 14:18:11 UTC 2012-66 Start CFML Controller
Wed Nov 14 14:18:11 UTC 2012 Loaded Railo Version 4.0.0.013
===================================================================
WEB CONTEXT (0f38c727aa462476f7c8b4774faa15a0)
-------------------------------------------------------------------
- config:/websites/keithreiter.com/WEB-INF/railo
- webroot:/websites/keithreiter.com/
- hash:0f38c727aa462476f7c8b4774faa15a0
- label:0f38c727aa462476f7c8b4774faa15a0
===================================================================
Nov 14, 2012 2:18:18 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-manager
===================================================================
WEB CONTEXT (3330203f4c141dbc2f4ce9055dcda4c3)
-------------------------------------------------------------------
- config:/opt/railo/tomcat/webapps/tomcat-manager/WEB-INF/railo
- webroot:/opt/railo/tomcat/webapps/tomcat-manager/
- hash:3330203f4c141dbc2f4ce9055dcda4c3
- label:3330203f4c141dbc2f4ce9055dcda4c3
===================================================================
Nov 14, 2012 2:18:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-docs
===================================================================
WEB CONTEXT (a4e3e988f47d91b57537a2a88ded4235)
-------------------------------------------------------------------
- config:/opt/railo/tomcat/webapps/tomcat-docs/WEB-INF/railo
- webroot:/opt/railo/tomcat/webapps/tomcat-docs/
- hash:a4e3e988f47d91b57537a2a88ded4235
- label:a4e3e988f47d91b57537a2a88ded4235
===================================================================
Nov 14, 2012 2:18:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/host-manager
===================================================================
WEB CONTEXT (46c377f39fb108b008e4ed163269dc1e)
-------------------------------------------------------------------
- config:/opt/railo/tomcat/webapps/host-manager/WEB-INF/railo
- webroot:/opt/railo/tomcat/webapps/host-manager/
- hash:46c377f39fb108b008e4ed163269dc1e
- label:46c377f39fb108b008e4ed163269dc1e
===================================================================
Nov 14, 2012 2:18:20 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-manager
Nov 14, 2012 2:18:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-docs
Nov 14, 2012 2:18:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/host-manager
Nov 14, 2012 2:18:21 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/ROOT
===================================================================
WEB CONTEXT (ead619704c9d33daf2e74476a9164724)
-------------------------------------------------------------------
- config:/opt/railo/tomcat/webapps/ROOT/WEB-INF/railo
- webroot:/opt/railo/tomcat/webapps/ROOT/
- hash:ead619704c9d33daf2e74476a9164724
- label:ead619704c9d33daf2e74476a9164724
===================================================================
Nov 14, 2012 2:18:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8888"]
Nov 14, 2012 2:18:22 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Nov 14, 2012 2:18:22 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 44712 ms
Nov 14, 2012 2:18:25 PM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor /opt/railo/tomcat/conf/Catalina/www.keithreiter.com/ROOT.xml
Nov 14, 2012 2:18:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-manager
Nov 14, 2012 2:18:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/tomcat-docs
Nov 14, 2012 2:18:30 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory /opt/railo/tomcat/webapps/host-manager
I looked in all the railo logs and saw no new entries. I left the site down in case anyone wants to look (keithreiter.com). The site is PHP but I discuss CFML and the examples are CFML (http://www.keithreiter.com/examples/grid/index.cfm)
Keith,
The key here (with micro instance) is the %st of CPU usage – which is “steal time”. If that’s high, you’re being throttled by the micro instance, and everything will slow to a crawl.
It may be that when the steal time comes back down, railo may be in an unrecoverable state – even though the throttle has been lifted.
This may help explain: http://www.youtube.com/watch?v=EQOmqi_n_ZY
I gave up on micro instances for this exact reason…