Reducing instance startup time JSP taglib scanning

151 views
Skip to first unread message

Jordi P.S.

unread,
Jul 10, 2012, 9:07:14 AM7/10/12
to google-a...@googlegroups.com
Trying to reduce the startup time of my instances I've come accross the taglib classpath scanning.

My application has 50mb of jars. According to a yourkit profiling session: the scanning of the tld takes 20% of the startup time.

Is there a way to disable that? I just use JSTL standard libs which are already included (according to the doc).

I'd like to disable as well JSP precompilation. Any idea?

Thanks,
Jordi.

cloudpre

unread,
Jul 31, 2012, 11:33:04 PM7/31/12
to google-a...@googlegroups.com
I have exactly the same issue. For me, it takes more than 21secs for it to scan just this one. The system is not slow.


----

Aug 1, 2012 1:58:47 AM com.google.apphosting.utils.jetty.JettyLogger debug

FINE: TLD search of file:/xxxxx/eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.6.4.v201203300216r36/appengine-java-sdk-1.6.4/lib/tools/jsp/repackaged-appengine-jasper-jdt-6.0.29.jar

Aug 1, 2012 1:59:08 AM com.google.apphosting.utils.jetty.JettyLogger debug

FINE: Init SecureRandom.

---

Is there a way to disable taglib totally so that it does not scan? The entire application has been built for speed and this thing discourages me.

Thanks.

Rafael Sanches

unread,
Jul 11, 2013, 7:59:16 PM7/11/13
to google-a...@googlegroups.com
Is it possible nobody figured this out yet? There's nothing on the internet. 

With standard jetty it should be just this in web.xml: 

<context-param>

    <param-name>org.mortbay.jetty.webapp.NoTLDJarPattern</param-name>

    <param-value>test.jar|.*\.jar</param-value>

</context-param>


It doesn't work on appengine though. 

Reply all
Reply to author
Forward
0 new messages