Skip to content

Freeze when connecting to Java application suspended by debugger #427

Open
@Marcono1234

Description

@Marcono1234

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
    ❌ 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions