| Author |
slow initial jsp - - - suggestions needed to fast it up.
|
Kishore Dandu
Ranch Hand
Joined: Jul 10, 2001
Posts: 1934
|
|
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.
|
Kishore
SCJP, blog
|
 |
Sam Dalton
Author
Ranch Hand
Joined: Jul 26, 2001
Posts: 170
|
|
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
|
<a href="http://www.samjdalton.com" target="_blank" rel="nofollow">Sam Dalton</a>,<br />Co-author of [http://www.amazon.com/exec/obidos/tg/detail/-/1590592255/qid=1068633302//ref=sr_8_xs_ap_i0_xgl14/104-4904002-9274339?v=glance&s=books&n=507846]Professional JSP 2.0[/URL] (October 2003)<br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/1861007701/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional SCWCD Certification</a><br />Co-author of <a href="http://www.amazon.com/exec/obidos/ASIN/186100561X/ref=ase_electricporkchop" target="_blank" rel="nofollow">Professional Java Servlets 2.3</a>
|
 |
 |
|
|
subject: slow initial jsp - - - suggestions needed to fast it up.
|
|
|