You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Aravind Naidu <ar...@eha.net> on 2001/09/07 13:34:02 UTC

forward from servlet to JSP got slow

Hi,
Environment is Tomcat 3.2.3 on Linux.

All of a sudden the forward from a servlet to a JSP page got very slow. It
is weird in that we have 2 servers in a load balance pool and it started
happening on 1 server and while debugging it, I stoped and started the other
one and it started happening in the other also.

Any clues ? It eventually gets there but it takes about 15 seconds.

The code is like this.
getServletContext().getRequestDispatcher(nextPage).forward(req, res);


-- Aravind



More info. RE: forward from servlet to JSP got slow

Posted by Aravind Naidu <ar...@eha.net>.
I have more info. Turned all debug values on in Tomcat and this is the
trace. As one can see there is 5 sec gap between the last 2 lines, and I
have no idea what goes on there.


2001-09-07 21:38:02 - ContextManager: SimpleMapper1: SM: Found extension
mapping
 jsp(org.apache.jasper.servlet.JspServlet/null)
2001-09-07 21:38:02 - ContextManager: SimpleMapper1: SM: After mapping R(  +
/le
on/menu-look1.jsp + null) jsp(org.apache.jasper.servlet.JspServlet/null)
2001-09-07 21:38:02 - ContextManager: After processing: R(  +
/leon/menu-look1.j
sp + null)
2001-09-07 21:38:02 - Ctx(  ): Get real path /leon/menu-look1.jsp
/opt/tomcat/we
bapps/ROOT/leon/menu-look1.jsp /opt/tomcat/webapps/ROOT
2001-09-07 21:38:02 - Ctx(  ): Get real path /leon/menu-look1.jsp
/opt/tomcat/we
bapps/ROOT/leon/menu-look1.jsp /opt/tomcat/webapps/ROOT
2001-09-07 21:38:02 - Ctx(  ): Get real path /leon/menu-look1.jsp
/opt/tomcat/we
bapps/ROOT/leon/menu-look1.jsp /opt/tomcat/webapps/ROOT
2001-09-07 21:38:07 - ContextManager: SimpleRealm: Verify user=null
pass=null


-- Aravind


-----Original Message-----
From: Aravind Naidu [mailto:aravind.naidu@eha.net]
Sent: Friday, 7 September 2001 19:34
To: tomcat-user@jakarta.apache.org
Subject: forward from servlet to JSP got slow


Hi,
Environment is Tomcat 3.2.3 on Linux.

All of a sudden the forward from a servlet to a JSP page got very slow. It
is weird in that we have 2 servers in a load balance pool and it started
happening on 1 server and while debugging it, I stoped and started the other
one and it started happening in the other also.

Any clues ? It eventually gets there but it takes about 15 seconds.

The code is like this.
getServletContext().getRequestDispatcher(nextPage).forward(req, res);


-- Aravind