Performance problem? 2003-10-10 - By Neil Aggarwal
Back Hello:
We have noticed that in our app, on occasion, a request takes an inordinately long time to execute even though it is performing a simple task.
I added some tracing to the org.apache.jasper.servlet.JspServletWrapper  class and get this output immediately before calling service on the servlet created from my jsp file:
10/10/2003 8:52:08.635 AM [Thread-188 (See http://ead-188.ora-code.com)] Calling service on org.apache.jsp.index_jsp
My code is in the call to the service() method of the servlet after checking that Tomcat is not running a SingleThreadModel:
if (theServlet instanceof SingleThreadModel) { // sync on the wrapper so that the freshness // of the page is determined right before servicing synchronized (this) { theServlet.service(request, response); } } else { com.slsideas.pagegen.servlets.BaseControllerServlet.addNote(request, "Calling service on "+theServlet.getClass().getName() ); theServlet.service(request, response); }
My next line of output from the same thread is in my jsp file at the very top. It gave me:
10/10/2003 8:53:49.193 AM [Thread-188 (See http://ead-188.ora-code.com)] At top of index.jsp
So, you can see that it took over a minute and a half to get from the invocation of the service method on my jsp servlet to the actual execution of it.
This seems strange to me, since this is just a method invocation.
I don't believe this is caused by compilation of the jsp file since I have development set to false in tomcat's config file and this code is past that point in the JspServlet class.
I don't believe this is garbage collection related since I have the verbose garbage collection flags turned on and I see that the GC for 100 seconds before and after this event look like this:
6467.31: [Full GC 285948K->236784K(460072K), 1.7318340 secs] 6497.1: [GC 287631K->259103K(460072K), 0.0225250 secs] [My output occurred here] 6497.84: [GC 287775K->259175K(460072K), 0.0198420 secs] 6529.71: [Full GC 382024K->259185K(460072K), 0.7856030 secs]
The garbage collector is not taking very long to run.
Does anyone have any insights to why this is taking so long?
Thanks, Neil.
-- Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com FREE! Valuable info on how your business can reduce operating costs by 17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|