visualvm icon indicating copy to clipboard operation
visualvm copied to clipboard

Freeze when connecting to Java application suspended by debugger

Open Marcono1234 opened this issue 3 years ago • 1 comments

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:

  1. Start any Java program and suspend it with a debugger I used IntelliJ and let the program hit a breakpoint.
  2. In VisualVM in the "Applications" tab on the left, click on the application :x: 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

Marcono1234 avatar Aug 11 '22 22:08 Marcono1234

This solution worked for me https://stackoverflow.com/a/45537794/8165307

annstriganova avatar May 11 '23 20:05 annstriganova