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.
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)
Created attachment 162284 [details] stacktrace
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
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