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 114257 - Cannot take snapshot when profiling NetBeans with JDK 1.5
Summary: Cannot take snapshot when profiling NetBeans with JDK 1.5
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords: RANDOM
Depends on: 120689
Blocks:
  Show dependency tree
 
Reported: 2007-08-30 15:35 UTC by Alexander Kouznetsov
Modified: 2008-11-25 15:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Profiler output 1 (55.09 KB, text/plain)
2007-08-30 15:36 UTC, Alexander Kouznetsov
Details
Profiled Application output 1 (51.53 KB, text/plain)
2007-08-30 15:37 UTC, Alexander Kouznetsov
Details
Profiler output 2 (62.66 KB, text/plain)
2007-08-30 15:37 UTC, Alexander Kouznetsov
Details
Profiled Application output 2 (69.33 KB, text/plain)
2007-08-30 15:38 UTC, Alexander Kouznetsov
Details
server thread dump (12.22 KB, text/plain)
2007-09-03 15:40 UTC, J Bachorik
Details
client thread dump (17.87 KB, text/plain)
2007-09-03 15:41 UTC, J Bachorik
Details
Profiler output and Thread Dump (63.39 KB, text/plain)
2007-10-31 16:17 UTC, Alexander Kouznetsov
Details
Profiled App output and thread dump (31.92 KB, text/plain)
2007-10-31 16:19 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-08-30 15:35:25 UTC
Product Version: NetBeans IDE Dev (Build 200708270000) 
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

I come to this problem quite often when I perform NetBeans profiling in the following scenario:
- Use NetBeans IDE Dev (Build 200708270000) (Java EE) with clean userdir, having specified JDK 1.5 and removed
"-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled" flags
- Perform Calibration
- Run another instance of IDE with customized clean userdir and parameters for direct attach like in the following command
"C:\Program Files\NetBeans 6.0 200708270000\bin\nb.exe" --userdir C:\Work\Temp\NBHome "-J-agentpath:C:\Program
Files\NetBeans 6.0 200708270000\profiler2\lib\deployed\jdk15\windows\profilerinterface.dll=C:\Program Files\NetBeans 6.0
200708270000\profiler2\lib,5140"
- Perform Attach Profiler action for External Application Memory Allocation Profiling, each 100 objects, Record stack
traces, Local Direct Attach to Application.
- Open VM Telemetry Overview window
- Invoke Take Snapshot action at different moments
- RESULT: No snapshot is created and "Profiled Application doesn't respond" message is shown. After that no profiling is
possible. User had to kill profiled IDE.
Comment 1 Alexander Kouznetsov 2007-08-30 15:36:06 UTC
Created attachment 47816 [details]
Profiler output 1
Comment 2 Alexander Kouznetsov 2007-08-30 15:37:05 UTC
Created attachment 47817 [details]
Profiled Application output 1
Comment 3 Alexander Kouznetsov 2007-08-30 15:37:46 UTC
Created attachment 47818 [details]
Profiler output 2
Comment 4 Alexander Kouznetsov 2007-08-30 15:38:23 UTC
Created attachment 47819 [details]
Profiled Application output 2
Comment 5 Tomas Hurka 2007-08-30 15:52:29 UTC
Thread dumps look strange. It is not clear what is going on. 
Comment 6 Alexander Kouznetsov 2007-08-30 16:00:02 UTC
Even it is random it is highly reproducible. And it is not that high reproducible with JDK 1.6 (if reproducible at all).
Comment 7 J Bachorik 2007-09-03 15:40:55 UTC
Created attachment 47987 [details]
server thread dump
Comment 8 J Bachorik 2007-09-03 15:41:28 UTC
Created attachment 47988 [details]
client thread dump
Comment 9 Tomas Hurka 2007-09-04 17:13:26 UTC
Fixed in trunk.
Comment 10 Alexander Kouznetsov 2007-10-31 16:15:08 UTC
Well, I'm not sure whether it is the same issue, at least I'm not able to verify this one. When I performed the steps I
got to the state when both profiler and profiled IDE became frozen. And I believe it happened in the same moment as for
the original issue.
Comment 11 Alexander Kouznetsov 2007-10-31 16:17:08 UTC
Created attachment 52141 [details]
Profiler output and Thread Dump
Comment 12 Alexander Kouznetsov 2007-10-31 16:19:14 UTC
Created attachment 52143 [details]
Profiled App output and thread dump
Comment 13 Tomas Hurka 2007-10-31 16:30:02 UTC
This is different issue. This looks like problem in socket handling in JDK 5. It should work fine in JDK 6. Please file
separate issue.
Comment 14 Alexander Kouznetsov 2007-10-31 18:12:25 UTC
OK, filed new issue 120689. Until it is fixed I can't verify this one.
Comment 15 Rashid Urusov 2008-11-25 15:29:52 UTC
VERIFIED in Build 200811240201