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.

Bug 58751 - Can time out when changing instrumentation with JDK1.5
Summary: Can time out when changing instrumentation with JDK1.5
Status: CLOSED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: iformanek
URL:
Keywords:
: 60826 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-05-11 05:05 UTC by mishadmitriev
Modified: 2007-02-12 21:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mishadmitriev 2005-05-11 05:05:41 UTC
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.
Comment 1 iformanek 2005-06-20 09:54:39 UTC
Postponing to M8
Comment 2 iformanek 2005-08-03 10:14:31 UTC
*** Issue 60826 has been marked as a duplicate of this issue. ***
Comment 3 iformanek 2005-08-09 17:40:08 UTC
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
Comment 4 ehucka 2006-10-09 12:11:14 UTC
Verification of old issues.
Comment 5 Alexander Kouznetsov 2007-02-12 21:56:47 UTC
Closing old issues.