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 219695 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-10-08 10:50 UTC by schkovich
Modified: 2013-07-19 11:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 193227


Attachments
stacktrace (661 bytes, text/plain)
2012-10-08 10:50 UTC, schkovich
Details
message log related to described crash (230.52 KB, text/x-log)
2012-10-17 09:12 UTC, schkovich
Details
thread dump related to crash (30.88 KB, application/octet-stream)
2012-10-17 09:15 UTC, schkovich
Details
lof file (183.28 KB, text/x-log)
2012-10-21 06:51 UTC, schkovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description schkovich 2012-10-08 10:50:49 UTC
Build: NetBeans IDE 7.3 Beta (Build 201210011125)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.1-b03, Java(TM) SE Runtime Environment, 1.7.0_05-b05
OS: Linux

User Comments:
schkovich: Scanning project. Imported setting from the 7.2




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at sun.awt.X11.XEvent.get_xkey(XEvent.java:43)
   at sun.awt.X11.XWindow.handleKeyPress(XWindow.java:1078)
   at sun.awt.X11.XFocusProxyWindow.handleKeyPress(XFocusProxyWindow.java:81)
   at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1099)
   at sun.awt.X11.XFocusProxyWindow.dispatchEvent(XFocusProxyWindow.java:73)
   at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1066)
Comment 1 schkovich 2012-10-08 10:50:52 UTC
Created attachment 125570 [details]
stacktrace
Comment 2 schkovich 2012-10-17 09:12:28 UTC
Created attachment 126062 [details]
message log related to described crash

Ubuntu apport is reporting that /home/schkovich/netbeans-dev-201210170002/platform/modules/lib/amd64/linux/libjnidispatch-340.so crashed.

Java will be taking almost the entire CPU, then start throwing out of memory exception and finally will crash.

However, changing memory settings did the trick. Using following settings background scanning finished successfully:
netbeans_default_options="--fontsize 14 --laf javax.swing.plaf.metal.MetalLookAndFeel -J-client -J-Xss12m -J-Xms192m -J-XX:PermSize=192m -J-XX:MaxPermSize=1024m -J-Xmx2048m -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled -J-XX:+UseParNewGC -J-Dnetbeans.logger.console=true -J-ea -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.zip.disableMemoryMapping=true"
Comment 3 schkovich 2012-10-17 09:15:30 UTC
Created attachment 126063 [details]
thread dump related to crash
Comment 4 schkovich 2012-10-17 09:17:45 UTC
Heap dump is too big to be attached even when compressed. Here is download link: http://ubuntuone.com/6U3bKYnUq9seqq1tciidRT
Comment 5 Theofanis Oikonomou 2012-10-17 13:50:02 UTC
From the log I see that the first OOME is thrown from org.netbeans.modules.javascript2.editor.model.impl.JsObjectImpl

I cannot spot something wrong with the import of old settings.  Increasing the default -Xmx768m to -Xmx2048m fixed the problem if I understand correctly. re-assigning for evaluation.
Comment 6 schkovich 2012-10-17 15:42:08 UTC
Could it be connected to the fix Petr committed today: http://netbeans.org/bugzilla/show_bug.cgi?id=219925
Comment 7 schkovich 2012-10-21 06:51:19 UTC
Created attachment 126253 [details]
lof file

Exactly the same use case (initial scan after importing project from NB 7.2) is not giving the same exception any more. I am getting java.lang.OutOfMemoryError: Java heap space

Heap dump: http://ubuntuone.com/3t22TYidRpytXEDHsuXf76

There is something strange it the message log: IDE is scanning/normalizing files that are not part of the open project.

Further on WARNING [CssEmbeddingProvider]: Unexpected snapshot type: 'text/x-twig'; expecting 'text/html' looks odd.
Comment 8 Jiri Kovalsky 2012-10-23 19:01:51 UTC
Petr, did you already have a chance to evaluate this OOME? Thanks!
Comment 9 Petr Pisl 2012-11-05 17:15:32 UTC
I have to admit, that I haven't time yet. I'm going to look at it asap.
Comment 10 Petr Pisl 2013-07-19 11:20:14 UTC
I went through and this should be already fixed in NB 7.4.