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 246841 - OutOfMemoryError in JsCodeCompletion.complete()
Summary: OutOfMemoryError in JsCodeCompletion.complete()
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
: 247784 251286 251542 251889 252371 253202 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-09-03 09:17 UTC by Martin Janicek
Modified: 2016-06-28 11:10 UTC (History)
8 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 211559


Attachments
stacktrace (2.73 KB, text/plain)
2014-09-03 09:17 UTC, Martin Janicek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2014-09-03 09:17:21 UTC
Build: NetBeans IDE Dev (Build 201406160001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.55-b03, Java(TM) SE Runtime Environment, 1.7.0_55-b13
OS: Linux

User Comments:
mjanicek: Dont know




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at java.lang.reflect.Array.newInstance(Array.java:70)
   at java.util.AbstractCollection.toArray(AbstractCollection.java:176)
   at org.openide.util.RequestProcessor$SlowItem.fillInStackTrace(RequestProcessor.java:1848)
   at java.lang.Throwable.<init>(Throwable.java:250)
   at java.lang.Exception.<init>(Exception.java:54)
   at org.openide.util.RequestProcessor$Item.<init>(RequestProcessor.java:1737)
Comment 1 Martin Janicek 2014-09-03 09:17:23 UTC
Created attachment 149016 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-09-03 09:43:31 UTC
memory depleted by js parsing: org.apache.lucene.document.Field	2,835,882 instances ~ 195 MB, held in org.netbeans.modules.javascript2.editor.JsCodeCompletion.complete-java.util.ArrayDeque$DeqIterator#1 - keeps about 520 000 instances of IndexResult
Comment 3 Jaroslav Havlin 2014-10-13 14:06:06 UTC
*** Bug 247784 has been marked as a duplicate of this bug. ***
Comment 4 Exceptions Reporter 2014-10-24 14:29:05 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=211559
Comment 5 Jaroslav Havlin 2015-07-23 13:02:32 UTC
*** Bug 253202 has been marked as a duplicate of this bug. ***
Comment 6 Jaroslav Havlin 2015-08-12 14:03:00 UTC
*** Bug 252371 has been marked as a duplicate of this bug. ***
Comment 7 Jaroslav Havlin 2015-08-13 13:19:52 UTC
*** Bug 251889 has been marked as a duplicate of this bug. ***
Comment 8 Jaroslav Havlin 2015-08-14 08:35:30 UTC
*** Bug 251542 has been marked as a duplicate of this bug. ***
Comment 9 Jaroslav Havlin 2015-08-14 12:29:08 UTC
*** Bug 251286 has been marked as a duplicate of this bug. ***
Comment 10 Petr Pisl 2015-09-09 11:35:38 UTC
Heapdumps #779088, #783479, #780131, #789115, #787679, #787092 are duplicates of issue #253771

Heapdump #779290
Comment 11 Petr Pisl 2015-09-09 11:51:21 UTC
Heapdump #779290 is a problem in php debugger org.netbeans.modules.php.dbgp.models.nodes.ArrayVariableNode which consume almost 1GB. 

Heapdump #781571 is problem in loading many fields from JsIndex. The same as issue #253771

Heapdump #789430 is problem with old CND Library manager. Too many URLs (2 millions). The problem is already fixed. 

Heapdump #785624 is strange. Has only 124MB and the biggest retained size has org.netbeans.StandardModule$OneModuleClassLoader, which consumes 10MB.


Only heapdump #779290 could be relevant -> reassigning to the php debugger for evaluation.
Comment 12 Tomas Mysik 2016-06-28 11:10:57 UTC
Lots of data coming from Xdebug; please, increase Xmx parameter and it should work.

Thanks.