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.
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
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.
*** This issue has been marked as a duplicate of 138611 ***