...
Note |
---|
Do not create a heap-dump on your production system unless a member of the HiveMQ Support team clarified the action with you! |
Instructions
Info |
---|
Make sure you are running these command with a user that has sufficient permissions i.e. root or the HiveMQ run user |
HiveMQ 3.x (JDK 8+)
Find the processID <pid> for the HiveMQ process by running:
ps aux | grep hivemq
Run
jmap -dump:file=heap.bin <pid>
Alternative:jcmd <pid> GC.heap_dump filename=heap.bin
Compress the heap.bin file and upload it to your HiveMQ Support Ticket
...
Inside a Docker Container
Code Block | ||
---|---|---|
| ||
curl -L https://github.com/apangin/jattach/releases/download/v1v2.50/jattach > jattach && \ chmod +x jattach && ./jattach 1 dumpheap heap-dump.hprof | ||
Info | ||
Make you sure a running these command with a user that has sufficient permissions i.e. root or the HiveMQ run user. |