3 Replies Latest reply on Apr 9, 2003 9:44 AM by iramesh

    Precompiled JSP slower than Postcompiled JSP

    evantoliopoulos

      Hi All,

      I am noticing that when I deploy precompiled JSP, they (the servlets) are executing much slower than when I let JBoss/Jetty compile them. When I say much slower, I mean ten times slower. That is, a very processing intensive page that is postcompiled takes 5 seconds to generate the resultant HTML whereas when precompiled it take 58 seconds.

      (This particular page used JSTL tags utilising expression language and produces a medium sized table)

      BTW,

      I compile .jsp files into .java files using the same jspC that ships with JBoss v3.0.4. In fact pre and post compiled .java files are 99% identical.

      Then I compile the .java files into .class files using the standard javac v1.4.1_02. I have already tried turning debug off and optimize on.

      Then of course I merge the generated servlet descriptors into the web.xml file.

      I have not been able to find mention of any configuration settings that may help in either the JBoss or Jetty manuals. And my forum searches also brought up nothing that I thought may be relevant.

      Has anyone else seen this and know how to fix it?

      Thanks,
      Evan