5

Trying to reduce the startup time of my instances I've come accross the taglib classpath scanning.

My application has 50mb of jars. The scanning of the tld takes 20% of the startup time.

Yourkit capture of the startup time

Is there a way to disable that? I just use JSTL standard libs which are already included (gae doc for jsp)

I'd like to disable as well JSP precompilation.

Jordi P.S.
  • 3,838
  • 7
  • 36
  • 59

3 Answers3

4

I looked in the sourcecode of TagLibConfiguration http://javasourcecode.org/html/open-source/jetty/jetty-6.1.26/org/mortbay/jetty/webapp/TagLibConfiguration.java.html#line.134 and found that it respects a parameter NoTLDJarPattern

The NoTLDJarPattern paramter is configured in web.xml to reduce scanning time:

<context-param>
    <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>
    <param-value>test.jar|prefix-.*\.jar</param-value>
</context-param>
Aksel Willgert
  • 11,367
  • 5
  • 53
  • 74
1

See this...

Jsp Jetty Configuration

Greetings.

MG_Bautista
  • 2,593
  • 2
  • 18
  • 33
0

You can easily disable precompilation, just put next line in the deployment descriptor web.xml file : App-Engine doc here.

<precompilation-enabled>false</precompilation-enabled>
Ma Jerez
  • 4,887
  • 3
  • 23
  • 21
  • precompilation should be enabled, that means to compile JSP at deployment time, not at instance init time, and that's what we want – Jordi P.S. Dec 27 '12 at 14:35