Loading

How to Get Heap Dump Without JDK Installed

Дата публикации: Aug 4, 2025
Действия

CONTENTS

You are unable to use the Support Collector Tool (Support information collector) to grab the heap dump for some reason, or you may not have the Java JDK installed. Here is another way to get a heap dump.


STEPS TO FOLLOW

1. Go to the following open source project, jattach, and download the binary script from the release page: link 

2. Download the binary for your platform running the Mule runtime. For Windows 64 bit, choose jattach.exe.

3. To run this file, go to the directory of the file and use the following commands:

Linux:

# Preferred way of finding PID of Mule runtime:
jps -v

# Alternative way to find the PID of Mule runtime process
ps -ef | grep -i mule 

# Run the following and replace <PID> with PID from above commands
chmod +x jattach; ./jattach <PID> dumpheap /tmp/heap-dump.jmap
Mac:
# Preferred way of finding PID of Mule runtime:
jps -v

# Alternative way to find the PID of Mule runtime process
ps -ef | grep -i mule 

# Run the following and replace <PID> with PID from above commands
chmod +x jattach-macos; ./jattach-macos <PID> dumpheap /tmp/heap-dump.jmap
Windows:
- Go to process explorer and find the PID for Java if the runtime was started as a service.
- Otherwise, check out Task Manager to find the PID for the runtime
# Run the following and replace <PID> with PID from above steps
jattach.exe <PID> dumpheap C:\heap-dump.jmap

 
Номер статьи базы знаний

001115767

 
Загрузка
Salesforce Help | Article