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

Summary: OutOfMemoryError: Java heap space
Product: cnd Reporter: Exceptions Reporter <exceptions_reporter>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226212
Attachments: stacktrace

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.