3 Replies Latest reply on Oct 15, 2004 5:21 AM by louie171

    slow response times for jsp's

    louie171

      hi

      i'm running jboss 3.2.5 on a unix server and the response times of my jsps is very slow.

      Does anyone know how tips to spped em up!

        • 1. Re: slow response times for jsp's

          one way is to exapand the archive (ear or war). If you do that then jsp will be compiled only the first time, then will be stored in work dir as compliled.
          If you keep tjhem archived, jsp will be complied each time are requested.
          THere are also other params the you need to look in web.xml for jsp. JBoss out of the box is tuned for developement. Change to false: deployment, reloading and keepgenerated.
          You will notice the difference.

          Another way is to precompile jsp with Ant and treat them any other servlets.

          • 2. Re: slow response times for jsp's
            louie171



            thanks for your reply snasto ; but how do you expand your jars/wars?

            • 3. Re: slow response times for jsp's
              louie171

              Also to set the 'deployment' , 'reloading' etc as you mention is it the web.xml file in the tomcat directory you alter?
              I presume i must add these to the below as name value pairs is this right?


              <servlet-name>jsp</servlet-name>
              <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>
              <init-param>
              <param-name>logVerbosityLevel</param-name>
              <param-value>WARNING</param-value>
              </init-param>
              <load-on-startup>3</load-on-startup>