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.
Summary: | Leaking JavaC - 748M of occupied memory | ||
---|---|---|---|
Product: | platform | Reporter: | Jaroslav Tulach <jtulach> |
Component: | Filesystems | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jlahoda, mmirilovic, pjiricka |
Priority: | P2 | ||
Version: | 7.3 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jaroslav Tulach
2013-01-09 09:27:42 UTC
Forbidden You don't have permission to access /~jtulach/leaking-javac.hprof.gz on this server. I did not have time to go through all 49 instances of javac in the dump, but after inspecting 10+ of them, it seems that the javac's are held through LayerGeneratingProcessor.originatingElementsByProcessor (read: this map holds 10+ useless javacs). I don't think there is a better solution than to fix LGP not to hold old javacs. The only real alternate solution I know would be to use a brand new AP Class loaded anew for each run of javac, but editting would be extremely slow (and esp. for NB APs, which typically force loading of tons of classes, just to provide the annotation names they are interested in, to find out they should not be called - but would cause problems to eclipselink as well). I see. Thanks for the evaluation. ergonomics#0a0a4941bdc8 Obviously too late to be in release73 branch already. Changing TM=Dev. Integrated into 'main-golden', will be available in build *201301110001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/0a0a4941bdc8 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #224631: Using WeakSet instead of ArrayList Merged as changeset: b13bd4b8b257 branch: release73 Integrated into 'releases', will be available in build *201301141642* or newer. Wait for official and publicly available build. Changeset: http://hg.netbeans.org/releases/rev/0a0a4941bdc8 User: Jaroslav Tulach <jtulach@netbeans.org> Log: #224631: Using WeakSet instead of ArrayList |