To check the algorithm of garbage collection used by the Mule Runtime JVM
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
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
How to Check JVM Flags on a Running Process
jmap
Java Platform, Standard Edition HotSpot Virtual Machine Garbage Collection Tuning Guide
001115781

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.