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);