Posted by ted_graham
on November 14, 2007 at 7:43 AM PST
I have a Java 6 app that does financial trading. I'm trying to improve the performance for the first few executions. I'm using -XX:CompileThreshold to try and force early compilation. With CompileThreshold set to 1, 3, 20 and 100 it appears that the compilation speedup comes after 9-10 executions. Interestingly, PrintCompilation does not show any relevant compilation happening around the 10th execution, but times consistently drop by a factor of 3 after 10-15 executions.
Running with CompileThreshold=10000 or not setting that flag does not give the big performance improvement after 10-15 executions.
Startup time and compilation time don't matter, any suggestions for reducing the number of executions before the performance improves?