3 ms·
Yes. The good approach when you're given a legacy java application with tons of flags is to removed ALL the optimizations flags for the heap and the GC. Most o
by user5994461 10y ago
Yes. The good approach when you're given a legacy java application with tons of flags is to removed ALL the optimizations flags for the heap and the GC.
Most of the settings found in legacy projects or on the internet are either obsolete or defaults in the latest version of the JVM.
The only mandatory heap flag is: "-Xms???M -Xmx???M" which set the heap size of the application to ??? megabytes.
- benzewdu 10y agoNot even -Xms -Xmx, there's heuristics built in to appropriately size the gc spaces... http://hg.openjdk.java.net/jdk8/jdk8/hotspot/file/tip/src/share/vm/memory/collectorPolicy.cpp http://hg.openjdk.java.net/jdk8/jdk8/hotspot/file/tip/src/sh...
- user5994461 10y agoRight. Most applications don't need that. It's only the server apps running 24/7 on fixed hardware that should have a defined memory usage.