Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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+)

  1. Find the processID <pid> for the HiveMQ process by running: ps aux | grep hivemq

  2. Run jmap -dump:file=heap.bin <pid>
    Alternative: jcmd <pid> GC.heap_dump filename=heap.bin

  3. Compress the heap.bin file and upload it to your HiveMQ Support Ticket

...

Inside a Docker Container

Code Block
languagebash
curl -L https://github.com/apangin/jattach/releases/download/v1v2.50/jattach > jattach && \
chmod +x jattach &&
./jattach 1 dumpheap heap-dump.hprof
Info
Make sure you are running these command with a user that has sufficient permissions i.e. root or the HiveMQ run user.