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 48068 - Redeploying web project leaves a memory leak
Summary: Redeploying web project leaves a memory leak
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords: PERFORMANCE
Depends on:
Blocks: 47776
  Show dependency tree
 
Reported: 2004-08-27 13:01 UTC by Antonin Nebuzelsky
Modified: 2006-03-24 10:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
WebModule instance reference graph (85.62 KB, image/png)
2004-08-27 13:02 UTC, Antonin Nebuzelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonin Nebuzelsky 2004-08-27 13:01:19 UTC
Repeatedly redeploying web project leaves
o.n.m.web.api.webmodule.WebModule (and other
objects it refers to) in memory. See the
screenshots of OptimizeIt window attached below.

Steps to reproduce:
1) create or open web project
2) open project's jsp page
3) modify the jsp page
4) save and close the jsp page
5) run Redeploy Project in popup of the project
6) GO TO STEP 2)

Each cycle of the process leaves 7 instances of
WebModule class, held through 7 instances of
JspParserAccess$WM registered as listeners (see
the screenshot).
Comment 1 Antonin Nebuzelsky 2004-08-27 13:02:36 UTC
Created attachment 17193 [details]
WebModule instance reference graph
Comment 2 Pavel Buzek 2004-08-27 17:55:29 UTC
I'll take a look at this.
Comment 3 Pavel Buzek 2004-09-01 22:04:37 UTC
cvs commit -m "48068 cache instance of WebModule"
src\org\netbeans\modules\web\project\ProjectWebModuleProvider.java
src\org\netbeans\modules\web\project\WebProject.java (in directory
E:\nb_all\web\project\)
Checking in
src/org/netbeans/modules/web/project/ProjectWebModuleProvider.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ProjectWebModuleProvider.java,v
 <--  ProjectWebModuleProvider.java
new revision: 1.7; previous revision: 1.6
done
Checking in src/org/netbeans/modules/web/project/WebProject.java;
/cvs/web/project/src/org/netbeans/modules/web/project/WebProject.java,v
 <--  WebProject.java
new revision: 1.41; previous revision: 1.40
done
Comment 4 Antonin Nebuzelsky 2004-09-02 11:48:19 UTC
Verified.
Comment 5 Antonin Nebuzelsky 2004-09-02 11:48:30 UTC
Verified.