Heap Dump on Camunda

Is there a suggested way to take a heap dump on the camunda bpm server (any latest version). By using Jmap, the process stops/is interrupted.

You can create a heapdump like you would with any other Java application.

Cheers,
Thorben