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 246791

Summary: OutOfMemoryError: Java heap space
Product: editor Reporter: rhj4
Component: -- Other --Assignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal CC: eapearson
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205711
Attachments: stacktrace

Description rhj4 2014-08-31 20:26:17 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) Client VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
GUEST: had a log .txt file opened in a tab, switched to browser and generated more logs and switched back to nb with that file opened. wasn't more than 1mb of txt in there :|

GUEST: I was running a program executing a relatively large (~1000lines) XSLT with XALAN

GUEST: nothing special, just coding a little bit php

GUEST: leave NetBeans on for nearly a week

rhj4: I clicked on a window containing a very large (3MB) file and program hung.

GUEST: Netbeans locked up upon running an app and took 5 minutes or so to come back.

GUEST: unresponsive ide

GUEST: halt error

GUEST: pasted if-else without closing } after which the IDE hanged

GUEST: NB was running over night.

GUEST: reading log files

GUEST: it took 2gb ram only on editing code ....shit ide

GUEST: Just trying to bring it to the foreground.

GUEST: working with 1MB xml file.  ide freezes after each edit.  had a 5 line change.  did an svn diff.. in the diff screen I tried commiting my change.. it said it needed an svn update so i clicked update.. afterwards I think I tried commiting.  I walked away from my desk. when I came back the xml file was showing as empty (no text in the file).  It was being sluggish by then.  I tried going to the file and hitting control-z to undo the text deletion. the IDE had frozen.  VisualVM showed the Perm generation was completely full!  (the xml file was the only file I had open in the ide)




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.Arrays.copyOf(Arrays.java:0)
   at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:0)
   at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:0)
   at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:0)
   at java.lang.StringBuilder.append(StringBuilder.java:0)
   at java.util.AbstractCollection.toString(AbstractCollection.java:0)
Comment 1 rhj4 2014-08-31 20:26:19 UTC
Created attachment 148968 [details]
stacktrace