dev@glassfish.java.net

Re: JSP seems to be compiled externally. Why?

From: Byron Nevins <byron.nevins_at_Sun.COM>
Date: Thu, 23 Mar 2006 13:04:45 -0800

If you think that's slow -- you should see what happens when you run
javac in the same VM -- it's about 4X slower than running it n an
external process.
Also, Javac is designed to run and then exit. It has memory leaks.


Kohsuke Kawaguchi wrote:
>
> I was deploying a new appliation to Glassfish this morning with
> Dinesh, and we noticed that it seems to be compiling JSPs by launching
> an external javac (more over, it seems to be doing so for each tag file.)
>
> This made it unbearably slow to see the web pages. Why is it doing so?
> Can't we just load javac in the AppServer JVM?
>