3 ms·
JVM Tuning for mere mortals
- randomsearch 13y ago> This one makes sense as well: double the memory and you will “cut in half” the time spent in GC... Well not really. Eventually you are going to have a GC. It’s inevitable. When that GC happens, you will double the time spent in GC due to the doubling in size of the Heap. This isn't really correct, whichever interpretation you place on it. Most importantly, it is worth noting that increasing your heap size will decrease the overall GC overhead of your program: i.e. your program's execution time will decrease. That is, until you run into paging, when your execution time will begin to increase as the overhead of fetching pages during a GC outweighs the benefits of a larger heap.