Improving performance for the first few execution passes?
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?