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 267578

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: paulcsf
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208897
Attachments: stacktrace

Description paulcsf 2016-08-15 01:13:58 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 10

User Comments:
GUEST: I guess it was because I opened a 64 MB large text-file (SQL-dump) in NetBeans - did some changes an tried to save them, but this made an exception, then I closed the file and discarded the changes. After this the CPU and memory usage of NetBeans went through the roof :)

GUEST: Again, about an hour into work, and Netbeans runs up to ~100% of a I7 with 12G of ram. This time the git repository has been removed from the loaded project, so it's not git related.

paulcsf: Netbeans uses ~100% of an I7 with 12G of ram, unresponsive. Usually within an hour of starting.

No git repository in project directory.

Project directory consists of 2700 files, 247 folders, ~60MB. Mostly PHP and Javascript.

GUEST: <5 minutes after restart after the last Netbeans crash, and it's already crashed again. ~100% processor usage, unresponsive.

java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.modules.editor.lib2.document.ReadWriteUtils.convertFromNewlines(
   at org.netbeans.editor.BaseDocument.write(
   at org.netbeans.editor.BaseKit.write(
   at org.openide.text.DataEditorSupport.saveFromKitToStream(
   at org.openide.text.CloneableEditorSupport$
   at org.netbeans.modules.editor.lib.BeforeSaveTasks$TaskRunnable$
Comment 1 paulcsf 2016-08-15 01:14:01 UTC
Created attachment 161660 [details]
Comment 2 paulcsf 2016-08-15 01:31:57 UTC
Reference issue/report 251260, 250620, 256063, 225747. I understand they may be different point to different outcomes, but the behavior, project tree (in my case), system (in my case), are all the same.