It is not possible to take heap dump through VisualVM. When I click "Heap Dump" button in VisualVM 2.1.2, I get the following error:  Originally reported at [stackoverflow](https://stackoverflow.com/questions/71508389/visualvm-failed-to-create-remote-heap-dump-and-save-it).