Performance Tuning

  • JVM Parameters:
    • -Xms: initial heap size for JVM
      • -Xms512M: 512 MB
    • -Xmx: max heap size for JVM
      • -Xmx2G: 2 GB
  • Garbage collector parameters:
    • -XX:+UseG1GC
    • -XX:+UseSerialGC
  • Thread:
    • -Xss: size of thread stack for each thread
    • -XX:+UseThreadPriorities: use native thread priorities