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 268283 - OutOfMemoryError: Compressed class space
Summary: OutOfMemoryError: Compressed class space
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P4 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-30 09:04 UTC by abs0d
Modified: 2016-09-30 09:35 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 226510


Attachments
stacktrace (2.65 KB, text/plain)
2016-09-30 09:04 UTC, abs0d
Details

Note You need to log in before you can comment on or make changes to this bug.
Description abs0d 2016-09-30 09:04:27 UTC
Build: NetBeans IDE 8.1 (Build 201510222201)
VM: OpenJDK 64-Bit Server VM, 25.102-b00, OpenJDK Runtime Environment, 1.8.0_102-internal-pkgsrc_1.8.102nb1-b00
OS: NetBSD

User Comments:
abs0d: Just trying to import and build a maven project (works fine on commandline and Eclipse)

Had already increased mx to 1024m




Stacktrace: 
java.lang.OutOfMemoryError: Compressed class space
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
   at org.netbeans.JarClassLoader.doLoadClass(JarClassLoader.java:311)
   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 abs0d 2016-09-30 09:04:29 UTC
Created attachment 162284 [details]
stacktrace
Comment 2 abs0d 2016-09-30 09:10:40 UTC
OK, didn't expect the report box to actually file a bug ticket. 

If I had to file an issue it would be regarding the default mx128 is quite low and it really should be more obvious how to increase

I'm sure there is a better way than mkdir .netbeans/etc, and then making a netbeans.conf with netbeans_default_options, derived by looking at the existing process command line and working out which -JXss2m etc options to copy, but it whatever it is was not apparent!

Thanks
Comment 3 abs0d 2016-09-30 09:35:39 UTC
Having read the stracktrace properly this time, retrying with 

netbeans_default_options="-J-XX:CompressedClassSpaceSize=200m -J-Xmx1024m -J-client -J-Xss2m -J-Xms128m -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true --jdkhome /usr/pkg/java/openjdk8"

Assuming J-XX:CompressedClassSpaceSize=200m will help