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.
The org.netbeans.modules.web.jspparser.JspParserImpl class causes a memory leak of WebProject objects. It contains the code: private synchronized WebAppParseProxy getParseProxy(WebModule wm) { JspParserImpl.WAParseSupportKey key = new JspParserImpl.WAParseSupportKey(wm); WebAppParseProxy pp = parseSupports.get(key); if (pp == null) { pp = createParseProxy(wm); parseSupports.put(key, pp); } return pp; } However, there are no corresponding 'parseSupports.remove()' calls. Since the JspParserImpl instance is held in the JspParserFactory.parser static field, these entries are never garbage-collected.
Hi Quy, how big is the leak and when does it happen? Without this we can not say how serious this bug is a what should be the priority. Assigning to Tomas as he will be looking at the JSP parser performance/memory problems.
It at least happens every time a visual web project (or a page within that project) is opened. I am not sure if it occurs as regularly with plain web projects. As for the severity of the leak, see: http://wiki.netbeans.org/wiki/view/DevFaqMemoryLeaks It specifically mentions Project instances as serious memory leaks. In this case, every WebProject object is retained in memory (so opening 5 web projects retains all 5 corresponding WebProject objects). Therefore, I think P2 is the correct priority with this issue.
JSPParser should be rewritten in NB 6.1.
*** This issue has been marked as a duplicate of 85817 ***