File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

slow initial jsp - - - suggestions needed to fast it up.

 
Kishore Dandu
Ranch Hand
Posts: 1934
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We are in a web based development effort where we are using J2EE,JSP, EJBs and Weblogic.
We observe that the initial invoke of a JSP takes some considerable time to process. (to convert from JSP to Servlet). From the next invocation it is reasonably faster.
We are using JDK1.2.2.
Is there a way we can fast up the inital JSP processing. I am wondering if moving to a later JDK will help it etc.
KIshore.
 
Sam Dalton
Author
Ranch Hand
Posts: 170
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can precompile the JSPs as they are deployed into weblogic. You need to add the following to your weblogic.xml file within you web application:
<jsp-descriptor>
<jsp-param>
<param-name>precompile</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
That will precompile them on deployment, obviously with an extra time hit at deployment time.
S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic