Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8074696

Remote debugging session hangs for several minutes when calling findBootType

XMLWordPrintable

    • b94

        A remote debugging session can hang for long periods of time when calling findBootType on a high delay network.

        VirtualMachineImpl.findBootType loops over all loaded classes and does a remote call to check if the signature matches.
        It will wait for the server response for each class before moving on to the next class, thus for many classes and high delay this will take a long time.

        Since we have a signature that should match, we should use retrieveClassesBySignature command that only returns matching classes.
        Then we would at worst have to loop over the number of active classloader since we want the class loaded by the boot classloader (null class loader);

              aeriksso Andreas Eriksson (Inactive)
              shadowbug Shadow Bug
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: