Search code examples
javajvisualvm

export thread dump from jvisualvm


I made a thread dump in jvisualvm. How to export it?

enter image description here

I can't find any export button.


Solution

  • For an answer, I suggest you use ^A^C to select all and copy, and ^V to paste into your favour editor. (Thank you @SubOptimal) If you use IntelliJ, it can analyse the stack trace and let you navigate it.

    From the command line you can do

    jstack {pid} > file
    

    to write directly to a file.