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?
>