This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Due to class file redefinition working noticeably slower in the JDK5/6 JVM, the tool can time out, deciding that the target JVM is dead, when attempting to instrument a large number of classes at once. For example, if you start Java2Demo in CPU profiling mode, and then try to change profiling to memory mode, the tool will very likely close connection with the JVM after 1 minute or so (standard timeout). The solution is probably to check if method redefinition is happening on timeout and if so, wait for more time. An alternative solution would be to redefine classes in several portions, but that's harder to implement and may be dangerous if some future kind of instrumentation really needs all (or some) of the classes to be redefined "atomically", in one go.
Postponing to M8
*** Issue 60826 has been marked as a duplicate of this issue. ***
Fixed in M8, if the communication times out, the user will be prompted. The memory instrumentation however, still exhibits problems under JDK 5.0 - specifically when Modifying profiling from monitoring to Memory instrumentation, the profiled JVM will ultimately run out of swap space - for details see Issue 61994
Verification of old issues.
Closing old issues.