'VisualVM - Failed to create remote heap dump and save it

I cannot take heap dump through VisualVM. When I click "Heap Dump" button in VisualVM 2.1.2, I get the following error: enter image description here

What am I doing wrong? Am I missing a setting somewhere?



Solution 1:[1]

The heap dump is fine. There is a bug in recent version of VisualVM, which checks the presence of the heap dump file on the local filesystem even though the heap dump was created on remote machine. It would be great, if you can file a bug with the description, you used above, at https://github.com/oracle/visualvm/issues. It will be fixed in the next release of VisualVM. Thanks.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tomas Hurka