You can pass 600+ arguments to JVM just around Garbage collection and memory. It’s way too many arguments for anyone to digest and comprehend. In all these 4 videos, 7 important JVM arguments that will boost your Java/Scala/Jython application performances are shared.

Videos

Part 1

Part – 1 explains the below arguments.

  • The maximum heap size (-Xmx) &
  • MaxMetaSpaceSize (-XX:MaxMetaspaceSize)

Part 2

In this part, thread stack size (-Xss) is discussed in detail.

Part 3

In this part, the arguments related to Garbage collection are explained.

  • GC Algorithm
  • Enable GC Logging

Part 4

This part explains about the timeout settings and OutOfMemoryError related JVM Arguments.

  • -Dsun.net.client.defaultConnectTimeout and -Dsun.net.client.defaultReadTimeout
  •  -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath