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 213617

Summary: Memory leak in org.netbeans.spi.debugger.ui.EditorContextDispatcher
Product: debugger Reporter: Petr Cyhelsky <cyhelsky>
Component: JavaAssignee: Martin Entlicher <mentlicher>
Status: RESOLVED FIXED    
Severity: normal Keywords: PERFORMANCE
Priority: P1    
Version: 7.2   
Hardware: PC   
OS: Windows 7 x64   
URL: http://netbeans.org/projects/profiler/downloads/download/Heapdumps/heapdump-213617.hprof.gz
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 212702    

Description Petr Cyhelsky 2012-06-05 16:20:15 UTC
There is a potentially big memory leak in  Memory leak in org.netbeans.spi.debugger.ui.EditorContextDispatcher (48 instances of com.sun.tools.jdi.VirtualMachineImpl are held by it in the particular heap dump) see the second heap dump from comment #8 from umbrella issue for details
Comment 2 Martin Entlicher 2012-06-06 12:33:03 UTC
The problem seems to be in listeners on action state changes.
Comment 3 Martin Entlicher 2012-06-06 15:13:01 UTC
Fixed by changeset:   223337:70ac56e642ba
http://hg.netbeans.org/main/rev/70ac56e642ba
I've also found a leak in RemoteServices.remoteServiceClasses - issue #213676
Comment 4 Quality Engineering 2012-06-07 06:01:14 UTC
Integrated into 'main-golden', will be available in build *201206070001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/70ac56e642ba
User: mentlicher@netbeans.org
Log: #213617: Prevent from holding ActionsManager from action providers.