Hi Michael,
> You write you run both engine on the same Tomcat, do you run both engine
> at same time?
Yes both/all (openBD is running too) startup along side Railo. I was
restarting the tomcat between performance comparisons. Good point
though, I'll separate these entirely for future performance
comparisons.
> "I've also noticed that CF handles out of memory errors much better"
> what you mean with this? what they do, what we do not?
Railo is hanging tomcat for 4-6minutes when it throws the out of
memory error, where as CF will throw the error and release the request
almost immediately.
Here is what I see from Railo when it is doing this, I've given two
examples of what happened since the output was different, the once
similarity was the "no open locks" message from Railo when it tried to
time the request out.
Any idea what is going on here?
================
Failure #1
================
================
HTTP response
(no quotes)
================
">"
================
console output
================
Mon May 18 13:15:13 EDT 2009-437 Call:/lhm-test.cfm (1)
request (path: E:\web\sites\railo.local\webapps\ROOT\lhm-test.cfm:1)
is run into a timeout (50 seconds) and has been stopped. no open locks
at railo.runtime.exp.PageRuntimeException.<init>
(PageRuntimeException.java:37):37
at railo.runtime.CFMLFactoryImpl.checkTimeout(CFMLFactoryImpl.java:
192):192
at railo.runtime.engine.Controler.run(Controler.java:110):110
at railo.runtime.engine.Controler.run(Controler.java:92):92
Mon May 18 13:21:39 EDT 2009-968 Release: (1)
================
requesttimeout.log
================
"ERROR","web-0","05/18/2009","13:16","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:16","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:16","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:16","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:17","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:17","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:17","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:17","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:17","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:18","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:18","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:18","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:18","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:18","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:19","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:19","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:19","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:19","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:19","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:20","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:20","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:20","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:20","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:20","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:21","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:21","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:21","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
"ERROR","web-0","05/18/2009","13:21","controler","stop thread (1)
because run into a timeout path: E:\web\sites\railo.local\webapps\ROOT
\lhm-test.cfm. no open locks"
================
Failure #2
================
================
HTTP Response:
================
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented
it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet execution threw an exception
root cause
java.lang.OutOfMemoryError: Java heap space
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18
================
console output
================
Mon May 18 13:37:38 EDT 2009-281 Call:/lhm-test.cfm (6)
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-2" java.lang.OutOfMemoryError: Java heap
space
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
Exception in thread "Thread-28" java.lang.OutOfMemoryError: Java heap
space
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
Exception in thread "ContainerBackgroundProcessor[StandardEngine
[Catalina]]" java.lang.OutOfMemoryError: Java heap space
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
e:\web\sites\railo.local\webapps\root\web-inf\railo\logs
\requesttimeout.log
Mon May 18 13:41:15 EDT 2009-671 Release: (6)
================
requesttimeout.log
(only a single line)
================
"ERROR","web-0","05/18/2009","13:41","controler","stop thread (6)
because run into a timeout . no open locks"
================
catalina.log
================
May 18, 2009 1:38:12 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet FileServlet threw exception
java.lang.OutOfMemoryError: Java heap space
at railo.commons.io.IOUtil.copy(IOUtil.java:214)
at railo.commons.io.IOUtil.copy(IOUtil.java:50)
at railo.commons.io.IOUtil.copy(IOUtil.java:159)
at railo.runtime.engine.CFMLEngineImpl.serviceFile
(CFMLEngineImpl.java:260)
at railo.loader.servlet.FileServlet.service(FileServlet.java:32)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.valves.AccessLogValve.invoke
(AccessLogValve.java:568)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)
May 18, 2009 1:41:15 PM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Servlet.service() for servlet CFMLServlet threw exception
java.lang.OutOfMemoryError: Java heap space