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 132373 - Editor Memory Consumption
Summary: Editor Memory Consumption
Status: RESOLVED DUPLICATE of bug 138611
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2008-04-08 23:01 UTC by longstrb
Modified: 2008-07-22 15:24 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 longstrb 2008-04-08 23:01:25 UTC
Hello:

I am finding that the file loading mechanism for the Editor consumes large amounts of memory when loading a file into 
the editor....

Take a simple text file that is 2MB in size (or larger) and open/close it into the editor several times.  The memory 
of the IDE seems to keep growing and growing, even though the file loaded and unloaded.

Also, it appears the loading mechanism takes 10MB+ just to load a 2MB file.  I am wondering if there are too many 
buffer copies going on, just to load the file.  Maybe with larger files, an incremental load approach with editor 
locking would be better. Please fix this when possible.

In the meantime, I need to know what the best way would be to hack the ClonableEditorSupport (DataEditorSupport) such 
that I can incrementally load the file.

Please let me know.

Best Regards,

Bradley
Comment 1 Vitezslav Stejskal 2008-04-09 11:23:31 UTC
This sounds serious, if the memory is not freed we should find the reason and fix this memory leak. I wrote some tests
for issue #130927 and they seemed to pass (ie editor panes properly GCed) for single view editors (eg plain text). The
tests only look at the editor pane itself and its associated toolbar, but don't check other metadata/services related to
the editor.
Comment 2 Jan Becicka 2008-07-22 15:24:31 UTC

*** This issue has been marked as a duplicate of 138611 ***