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 256533 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: RESOLVED WONTFIX
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-11-12 02:31 UTC by hacrot3000
Modified: 2016-06-03 06:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 214254


Attachments
stacktrace (769 bytes, text/plain)
2015-11-12 02:31 UTC, hacrot3000
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hacrot3000 2015-11-12 02:31:43 UTC
Build: NetBeans IDE 8.0.2 (Build 201408251540)
VM: OpenJDK 64-Bit Server VM, 25.65-b01, OpenJDK Runtime Environment, 1.8.0_65-b17
OS: Linux

User Comments:
GUEST: opening sbt project

hacrot3000: I don't know




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:760)
   at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:289)
   at org.netbeans.ProxyClassLoader.selfLoadClass(ProxyClassLoader.java:259)
   at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:187)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
Comment 1 hacrot3000 2015-11-12 02:31:44 UTC
Created attachment 157297 [details]
stacktrace
Comment 2 Tomas Hurka 2015-11-12 07:43:39 UTC
Too many files ( >1,000,000) in PHP project.
Comment 3 Tomas Mysik 2016-06-03 06:06:33 UTC
I see 2 ways here:

1) increase -Xmx JDK parameter, e.g. -J-Xmx2048m (likely in <nbdir>/etc/netbeans.conf or via command line); and/or
2) set Ignored Folders in your Project Properties dialog (not sure if it makes sense for your project, of course).

Thanks for reporting.