For tuning JVM settings, we can use below flags
-XX:+PrintStringTableStatistics,-XX:StringTableSize=n- Updating the String Pool, which can affect the performance of using String.
- https://willtheguruhome.wordpress.com/2022/02/09/difference-between-string-literal-and-string-object/
-XX:MaxHeapSize=n(same as-Xmxng),-XX:InitialHeapSize=n (same as -Xmsng)- Updating the heap size with these flags by like
java .. -Xmx1gwill enable to set up the Heap size.
- Updating the heap size with these flags by like
-XX:+UnlockDiagnosticVMOptions-XX:+PrintFlagsFinal- Print all the possible flags
-XX:+PrintCommandLineFlags- Print JVM default values


Leave a comment