users@glassfish.java.net

Re: Compiling JSP is slow on v3

From: <glassfish_at_javadesktop.org>
Date: Thu, 02 Sep 2010 14:18:59 PDT

kin-man, I think the jsp compilation is done in this method in WebDeployer:

    @Override
    protected void generateArtifacts(DeploymentContext dc)
        throws DeploymentException {
        DeployCommandParameters params = dc.getCommandParameters(DeployCommandParameters.class);
        if (params.precompilejsp) {
            //call JSPCompiler...
            runJSPC(dc);
        }
    }

So if you add some code to log the starting and ending time around the "runJSPC" call, the user should be able to find out how much time the JSP compliation is taking by setting appropriated log level.
[Message sent by forum member 'hzhang_jn']

http://forums.java.net/jive/thread.jspa?messageID=481746