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 268003 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED WONTFIX
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-13 15:31 UTC by Exceptions Reporter
Modified: 2016-09-15 16:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226212


Attachments
stacktrace (3.26 KB, text/plain)
2016-09-13 15:31 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-09-13 15:31:07 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 25.91-b14, OpenJDK Runtime Environment, 1.8.0_91-b14
OS: Linux

User Comments:
GUEST: it was scanning for external changes and hung and locked hard spinning a single core to 100%.  had to be killed externally to exit.  Seems to be more common after adding the html/js plugins to my existing c/c++ install




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.doGetChar(FileBufferFile.java:165)
   at org.netbeans.modules.cnd.modelimpl.csm.core.FileBufferFile.getCharBuffer(FileBufferFile.java:234)
   at org.netbeans.modules.cnd.apt.impl.support.APTDriverImpl$APTSyncCreator.getTokenStream(APTDriverImpl.java:131)
   at org.netbeans.modules.cnd.apt.impl.support.APTDriverImpl$APTSyncCreator.findAPT(APTDriverImpl.java:153)
   at org.netbeans.modules.cnd.apt.impl.support.APTDriverImpl.findAPT(APTDriverImpl.java:100)
   at org.netbeans.modules.cnd.apt.support.APTDriver.findAPTLight(APTDriver.java:110)
Comment 1 Exceptions Reporter 2016-09-13 15:31:08 UTC
Created attachment 162030 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2016-09-15 16:20:03 UTC
You have big codebase, but -Xmx1024m is used. Try 1500m or 2G instead. 
http://wiki.netbeans.org/FaqSettingHeapSize
Thanks.