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 140059 - Memory leaks in code model
Summary: Memory leaks in code model
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on: 139980
Blocks:
  Show dependency tree
 
Reported: 2008-07-15 12:20 UTC by Vladimir Kvashin
Modified: 2013-05-07 11:21 UTC (History)
0 users

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 Vladimir Kvashin 2008-07-15 12:21:43 UTC
The sequence: open project, open several files, close project causes memory leaks.
On subsequent iterations (with the same project!!) used memory continues to grow.

Steps to repeat are as follows.
Create a project based on MySQL source code.
Open several files (I opened row0mysql.c, row0row.c, sql_acl.c, AbortAll.hpp, ha_archive.h),
wait until they are ready, error highlighting in these files done (read/green square at the upper right corner appears).
Close the project. Wait about 10 seconds (for all background processes to finish)
Note that 89 Mb is occupied.

Repeat the steps above - 104 Mb is occupied.
Repeat the steps above yet one more time - 114 Mb is occupied.
Comment 1 Vladimir Kvashin 2008-07-28 13:22:16 UTC
After fixing #138611 and workaround for #139980 (http://hg.netbeans.org/main/rev/b79482bc9d6e) the situation improved
dramatically. Since it still needs investigation, I'm just downgrading this to P3.
Comment 2 nnnnnk 2008-07-29 11:35:07 UTC
Memory usage during opening and closing MySql project.

Open MySql | Open files | Close files | Close MySql
    74 Mb        121 Mb        132 Mb        84 Mb
    80           130           91            70
    97           157           128           86
    122          106           104           72
    124          130           118           90
    95           159           149           79
    104          137           125           107
    110          157           153           131 (something hanged)
Comment 3 nnnnnk 2008-09-16 15:27:00 UTC
New results:

Start IDE 28 Mb
Open MySql | Open files | Close files | Close MySql
     Mb         Mb           Mb           Mb
     81         103          90           36
     55         73           64           29    
     55         69           61           29 
     55         66           58           30
     56         70           58           31
     57         71           50           32 
     58         72           57           32

We loose less then 1 Mb per round.
Also process became much faster and more stable.