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 270366

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

Description derikd 2017-04-11 16:16:28 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.73-b02, Java(TM) SE Runtime Environment, 1.8.0_73-b02
OS: Mac OS X

User Comments:
GUEST: The running netbeans process wasn't accessed for 4 days. Now I wanted to contiune to programm but netbeans stopped responding.

derikd: If I let NetBeans sit idle overnight,  then when I come in the morning it will be consuming 100% of all CPU resoureces.   

Someitmes, as was the case here, NetBeans is non-responsive to the OS and I am required to use Force Quit to recover control of the CPU resources.  Othertimes I can just close it and reopen.

Running OSX 10.11.6.   On a MacPro mid 2012 edition (16GB RAM and Quad Core Xeon).  

This wasn't a problem until the last few months.




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:3181)
   at java.util.ArrayList.grow(ArrayList.java:261)
   at java.util.ArrayList.ensureExplicitCapacity(ArrayList.java:235)
   at java.util.ArrayList.ensureCapacityInternal(ArrayList.java:227)
   at java.util.ArrayList.add(ArrayList.java:458)
   at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:107)
Comment 1 derikd 2017-04-11 16:16:30 UTC
Created attachment 164082 [details]
stacktrace