Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Performance problem?

Performance problem?

2003-10-10       - By Neil Aggarwal

 Back
Reply:     1     2     3     4     5  

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 Source code of 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)



©2008 junlu.com - Jax Systems, LLC, U.S.A.