Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable taglib scanning in google app engine (Jetty)

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.

like image 877
Jordi P.S. Avatar asked Jul 10 '12 13:07

Jordi P.S.


2 Answers

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>
like image 79
Aksel Willgert Avatar answered Oct 31 '22 22:10

Aksel Willgert


See this...

Jsp Jetty Configuration

Greetings.

like image 25
MG_Bautista Avatar answered Oct 31 '22 22:10

MG_Bautista