[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ProgSoc] Precompiling JSPs




On Wed, 10 May 2000, Bryn Price wrote:

> Anyone that has worked with JSPs knows the slow speed at which they appear
> for the first time.  THis is because the JSP file is being compiled.
> 
> Does anyone know of a way to get the webserver to PRE-compile the JSPs and
> hence get rid of this first time lag

If you're using Resin (http://www.caucho.com/),

From http://www.caucho.com/products/resin/ref/faq.html#How_do_I_precompile_jsp_pages_

-----
How do I precompile *.jsp pages? 

You can run Resin on a single page from the shell: 

     unix> httpd.sh -e /test/myfile.jsp

That will compile the JSP. When you next start Resin, the JSP file will
already be available.  You can also use a link checker spider to
traverse your website to hit all the pages you want to precompile. 
-----

If you're using tomcat, I think you could use

$TOMCAT_HOME/bin/tomcat.sh jspc file.jsp

Although I never try this :)))



wim

--
You are subscribed to the progsoc mailing list. To unsubscribe, send a
message containing "unsubscribe" to progsoc-request@nospam.progsoc.uts.edu.au.
If you are having trouble, ask owner-progsoc@nospam.progsoc.uts.edu.au for help.

This list is archived at <http://www.progsoc.uts.edu.au/lists/progsoc/>