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 196181 - Memory leak at current build
Summary: Memory leak at current build
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 7.0
Hardware: PC Other
: P2 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on: 196306
Blocks:
  Show dependency tree
 
Reported: 2011-03-02 07:50 UTC by stefan79
Modified: 2011-03-08 05:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Log-File. (294.90 KB, application/octet-stream)
2011-03-02 07:51 UTC, stefan79
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stefan79 2011-03-02 07:50:55 UTC
I think there´s a memory leak at the current build.
Yesterday I started NB at morning and worked some hours.
Then the IDE slows down and so I made a heap-dump (jvisualvm).

Please have a look at http://www.MegaShare.com/3051808.
There´s a zipped heap-dump.

Product Version: NetBeans IDE Dev (Build 201102280001)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
System: Windows 7 version 6.1 running on amd64; Cp1252; de_AT (nb)
Comment 1 stefan79 2011-03-02 07:51:22 UTC
Created attachment 106619 [details]
Log-File.
Comment 2 Jan Lahoda 2011-03-03 12:06:03 UTC
Thanks for the heapdump. There are 25 instances of javac (way too many), of which:
-12 held by DeferredLintHandler
-10 held by ELWhereUsedQuery
-3 held from editor-related caches (a bit suspicious, but not a big problem compared to the remaining 22 instances)
Comment 3 stefan79 2011-03-03 16:28:52 UTC
Today the same problem: http://www.MegaShare.com/3057697

--
Product Version: NetBeans IDE Dev (Build 201103020001)
Java: 1.6.0_23; Java HotSpot(TM) 64-Bit Server VM 19.0-b09
Comment 4 Jan Lahoda 2011-03-04 15:13:48 UTC
I have filled a separate bug for the ELWhereUsedQuery (bug #196306).

The DeferredLintHandler bug can be reproduced using this source code:
class Test extends java.util.ArrayList<String> { public java.util.Iterator iterator() { return null; } }

when the Standard java warnings are enabled in Tools/Options/Editor/Hints/Java.
Comment 5 Jan Lahoda 2011-03-07 09:08:08 UTC
Fixing the DeferredLintHandler part in nb-javac (not yet part of NetBeans proper):
http://hg.netbeans.org/main/nb-javac/rev/fb5541f19043
Comment 6 Jan Lahoda 2011-03-07 15:56:06 UTC
http://hg.netbeans.org/jet-main/rev/b6143b0ddc2e
Comment 7 Quality Engineering 2011-03-08 05:47:55 UTC
Integrated into 'main-golden', will be available in build *201103080000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/b6143b0ddc2e
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #196134, #196181: updating the nb-javac library