Description
Describe the bug
It looks like VisualVM freezes when connecting to a Java application which is currently suspended by a debugger. This seems to occur every time you click on the application in the "Applications" tab on the left.
To Reproduce
Steps to reproduce the behavior:
- Start any Java program and suspend it with a debugger
I used IntelliJ and let the program hit a breakpoint. - In VisualVM in the "Applications" tab on the left, click on the application
❌ Notice how VisualVM freezes; once you resume execution of the suspended application, VisualVM becomes responsive again
Expected behavior
VisualVM should not freeze. If it cannot obtain certain information while the target application is suspended, it should properly inform the user if necessary, but should not prevent them from using VisualVM.
VisualVM log
logfile.txt
Does not seem to contain anything relevant; I think in a previous run it logged that it got stuck (also in VirtualMachineImpl.connectPipe
I think), but unfortunately I don't have that log file anymore.
Maybe the jstack
output while VisualVM is stuck is useful though: jstack.txt
Desktop (please complete the following information):
- OS: Windows 10
- JDK version JDK 11.0.13+8
- Version 2.1.4