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 192659 - Memory Leak and resulting deadlock editing complex JSF-Pages
Summary: Memory Leak and resulting deadlock editing complex JSF-Pages
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF Editor (show other bugs)
Version: 7.0
Hardware: PC Linux
: P1 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 09:22 UTC by mithridates
Modified: 2010-12-02 09:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mithridates 2010-11-30 09:22:18 UTC
[ BUILD # : 201011300001 ]
[ JDK VERSION : 1.6.22 ]

rather complex jsf-webapplication with ICEfaces 2 components (beta1 or beta2).
Opening a large page (~400lines) results in a period of about 2 minutes parsing
(cpu at 100%). After that (syntax-highlighting now shown) the used memory of
the IDE is at about 640m and increasing. 
Max 15 minutes later (in this time the nb-processlist shows repeatedly
"scanning facelets libraries") the heap is full (OOME is thrown), the IDE
stalls completely. 
Memory increase can be speeded up by setting the cursor behind a tag-attribute.
Closing the page does not free memory.
I did not see this with the nightlies before 201011300001.
Comment 1 Petr Jiricka 2010-12-01 09:52:24 UTC
Hi, I assume that your pages are in the .xhtml format, right? Or are they .jsp?
Comment 2 Marek Fukala 2010-12-01 10:13:51 UTC
possibly regression of the fix of issue #191041 Memory leak in JsfSupport.INSTANCIES
Comment 3 Marek Fukala 2010-12-01 10:17:37 UTC
Its bad! It is definitively a regression of the change. The JsfSupport instance is not cached at all but computed each time one asks for it.
Comment 4 Marek Fukala 2010-12-01 11:40:29 UTC
fixed in web-main#6ec614cd9a84

I'm really sorry for the problems, it was just a silly mistake, please update to newer build once its integrated.

Thanks for the report!
Comment 5 Quality Engineering 2010-12-02 06:25:38 UTC
Integrated into 'main-golden', will be available in build *201012020001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/6ec614cd9a84
User: Marek Fukala <mfukala@netbeans.org>
Log: #192659 - Memory Leak and resulting deadlock editing complex JSF-Pages
Comment 6 mithridates 2010-12-02 09:22:08 UTC
Gone with 201012020001.
Thanks!