I develop and backtest/optimize my strategies in Eclipse for the JForex API. I was wondering whether there any particular JVM arguments that should be used for optimal backtesting speed.
At the moment I just set the lower and upper limits of the heap size using these arguments:
-Xms512m -Xmx2048m
I've been wondering if there is a type of Garbage Collector for JForex backtesting that is better than the default one, such as the Throughput Collector, which does Garbage collection in multiple threads and is enabled using the argument:
-XX:+UseParallelGC
The problem with Garbage Collection is that in some situations it can be a performance bottleneck instead of improving performance.
Here is a good article:
Tuning Garbage Collection with the 5.0 Java[tm] Virtual MachineHere is a summary of an older version of the article:
Tuning Garbage Collection OutlineMaybe the JForex platform developers already have in-depth knowledge about performance tuning in Java, so it would be good if they could share their knowledge of what the best JVM settings are for backtesting using the JForex API.