Detailed explanation of JVM memory parameters

GC tuning parameters-
vmargs description is followed by the parameters of the VM

  • -Xmx maximum heap size (heap memory)
  • -Xms initial heap size (heap memory)
  • -XX:pARallelGcThreads=20 Configure the number of threads of the parallel collector
  • -XX:+UseConcMarkSweepGC CMS is a multi-threaded old-age garbage collector based on a mark-sweeping algorithm
  • -XX:+PrintGCDetails print detailed GC log
  • -XX:+UseParNewGC Parallel means parallel. The ParNew collector is a multi-threaded version of the Serial collector. After using this parameter, parallel collection will be performed in the new generation, and serial collection will be used in the old generation.
  • -XX:+DisableExplicitGC Disable manual release of GC (for example: System.gc())

Guess you like

Origin blog.csdn.net/weixin_42292697/article/details/110083765