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 234475 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-16 04:58 UTC by AvanOsch
Modified: 2015-09-07 19:16 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 202720


Attachments
stacktrace (723 bytes, text/plain)
2013-08-16 04:58 UTC, AvanOsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AvanOsch 2013-08-16 04:58:16 UTC
Build: NetBeans IDE 7.4 Beta (Build 201307092200)
VM: Java HotSpot(TM) Client VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b16
OS: Windows XP

User Comments:
GUEST: I was editing a big javascript file.

AvanOsch: I overwrote some files I was editing.
When returning to netbeans, everything froze...




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.Class.getDeclaredMethods0(Class.java:0)
   at java.lang.Class.privateGetDeclaredMethods(Class.java:0)
   at java.lang.Class.getMethod0(Class.java:0)
   at java.lang.Class.isCheckMemberAccessOverridden(Class.java:0)
   at java.lang.Class.checkMemberAccess(Class.java:0)
   at java.lang.Class.getMethod(Class.java:0)
Comment 1 AvanOsch 2013-08-16 04:58:18 UTC
Created attachment 138773 [details]
stacktrace
Comment 2 Petr Cyhelsky 2013-08-30 11:29:39 UTC
there is a lot of javascript related stuff in the heap, for example
the ~40k instances of org.netbeans.modules.javascript2.editor.model.impl.JsFunctionImpl are holding a lot of other javascript related stuff and their aggregate retained size is ~20% of heap. Reassigning to javascript for evaluation.
Comment 3 Petr Pisl 2015-09-07 19:16:53 UTC
Unfortunately the heap dump disappeared.