if we make the applet run from NetBeans(as standalone Java application), it takes less than 30 seconds to complete document generation.So maybe Netbeans already has a JVM primed and ready to run.
However if we make it run on browser, it takes more than 53 seconds. Any body knows why the applet is much slower than standalone application?Does it matter? Do you have any users who are in a position to make the comparison?
So, we've put JVM option, "-Xms512m -Xmx1024m" and we got a better performance which is less than 30 seconds.That puzzles me. The amount of free heap space shouldn't impact performance at all. Yet it does according to you. The only thing I can think of is really poor garbage collection performance, with more heap space it would have more breathing space.
even with this option in JVM and putting "-Xms512m -Xmx1024m" to java_arguments property in Applet tag in web page, the performance of applet running on browser doesn't change at all and it took more than 53 seconds.How old is the installed Java plugin I wonder? You can only change the heap size through the applet tag when running the "new" Java plugin (Java 6 update 10 and up).