Loading
Salesforce から送信されるメールは、承認済ドメインからのみとなります続きを読む

How to Check What Garbage Collection Algorithm is Used by a Running JVM

公開日: Aug 26, 2025
タスク

To check the algorithm of garbage collection used by the Mule Runtime JVM

ステップ
  • For Java version 8 and earlier:

Execute the following command: 

jmap -heap $(pidof java)

Example:

$ jmap -heap 10458
Attaching to process ID 2679, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.265-b01

using thread-local object allocation.
Mark Sweep Compact GC

From the above output, the GC algorithm used is: Mark Sweep Compact GC

 

  • For Java version 9 and later:

jcmd <pid> VM.info | grep gc

Example:

jcmd 10459 VM.info | grep gc
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.15+6 (17.0.15+6, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)

From the above output, the GC algorithm used is: G1GC

 

ナレッジ記事番号

001115781

 
読み込み中
Salesforce Help | Article