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.
If user is opening extremely large document (>a few MBs) the IDE should warn them that operation can cause OutOfMemory. If possible some calculation of the filesize and estimated memory requirement compared with available memory should be done.
Some suggestions from Performance team are appreciated.
The problem I just realized is that if the large file is opened programatically then the user cannot be warned. These two cases must be somehow distinguished. The example is java parser which opens document on the background and parses it. If the file is large it might cause problems. The check for the user would be best done in the Open action.
It's already implemented, the dialog rises when user tries to open large file (>1MB)