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 122139

Summary: IDE hangs for memory profiling web application on JBoss server
Product: profiler Reporter: Maksim Khramov <mkhramov>
Component: BaseAssignee: issues@profiler <issues>
Status: VERIFIED FIXED    
Severity: blocker CC: mariadavydova, non_migrated_user
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump
thread dump
thread dump
JBoss thread dump

Description Maksim Khramov 2007-11-16 12:39:56 UTC
Product Version: NetBeans IDE 6.0 RC1 (Build 200711160000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Linux version 2.6.22-14-generic running on i386; UTF-8; ru_RU (nb)
JBoss server 4.2.2

Perform memory profiling ServletExamples sample application.
Select record both object creation and GC
Select Record stack trace option.
Click run

After a time IDE hungs.
I attached a couple thread dups from IDE and JBoss JVM.
Comment 1 Maksim Khramov 2007-11-16 12:41:12 UTC
Created attachment 53114 [details]
thread dump
Comment 2 Maksim Khramov 2007-11-16 12:41:29 UTC
Created attachment 53115 [details]
thread dump
Comment 3 Maksim Khramov 2007-11-16 12:41:45 UTC
Created attachment 53116 [details]
thread dump
Comment 4 Maksim Khramov 2007-11-16 12:42:15 UTC
Created attachment 53117 [details]
JBoss thread dump
Comment 5 Alexander Kouznetsov 2007-11-16 18:47:07 UTC
Reproduced with
Product Version: NetBeans IDE 6.0 RC1 (Build 200711160000)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

Tried to start customized memory profiling for JBossTest application: allocation, record stack traces, limit stack depth
to 2 frames, don't run garbage collection, enable threads monitoring. After a long instrumentation phase Profiler
complained that profiled application doesn't respond. Had to cancel profiling.
Comment 6 J Bachorik 2007-12-11 14:21:03 UTC
fixed problem with communication related deadlock under right circumstances

Checking in SameNameClassGroup.java;
/cvs/profiler/libs/jfluid/src/org/netbeans/lib/profiler/classfile/SameNameClassGroup.java,v  <--  SameNameClassGroup.java
new revision: 1.2; previous revision: 1.1
done
Comment 7 Maksim Khramov 2008-02-01 16:56:20 UTC
Verified in Netbeans 6.1 Build 200801311204
Comment 8 pgebauer 2008-02-05 22:55:20 UTC
The fix has been ported into the release601_fixes branch.

Checking in SameNameClassGroup.java;
/cvs/profiler/libs/jfluid/src/org/netbeans/lib/profiler/classfile/Attic/SameNameClassGroup.java,v  <-- 
SameNameClassGroup.java
new revision: 1.1.12.1; previous revision: 1.1
done
Comment 9 mariadavydova 2008-02-15 14:49:10 UTC
verified.
Build: NetBeans IDE 6.0.1 (Build 200801291616) with NB601 Patch1
Comment 10 Tomas Hurka 2008-02-29 15:31:52 UTC
*** Issue 128635 has been marked as a duplicate of this issue. ***