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 249008 - OutOfMemoryError: PermGen space (-XX:MaxPermSize not set on JDK 7)
Summary: OutOfMemoryError: PermGen space (-XX:MaxPermSize not set on JDK 7)
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
: 251514 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-11-29 20:28 UTC by divinity
Modified: 2015-08-14 08:48 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213069


Attachments
stacktrace (2.64 KB, text/plain)
2014-11-29 20:28 UTC, divinity
Details

Note You need to log in before you can comment on or make changes to this bug.
Description divinity 2014-11-29 20:28:30 UTC
Build: NetBeans IDE 8.0.1 (Build 201408251540)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.65-b04, Java(TM) SE Runtime Environment, 1.7.0_67-b01
OS: Windows 7

User Comments:
GUEST: OutOfMemoryError: PermGen space

divinity: it freeze




Stacktrace: 
java.lang.OutOfMemoryError: PermGen space
   at java.lang.ClassLoader.defineClass1(ClassLoader.java:0)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
   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:358)
Comment 1 divinity 2014-11-29 20:28:32 UTC
Created attachment 150792 [details]
stacktrace
Comment 2 Milutin Kristofic 2015-07-28 13:53:40 UTC
I couldn't extract report 768117 and rest two (748253, 754585) are from same user. It seems Lookup filled Perm Memory.
Comment 3 Jaroslav Havlin 2015-07-30 12:26:58 UTC
I'm sorry, I have no idea what could be wrong.

Reassigning to platform/Module System.
Tomas, can you please evaluate?
Thank you.
Comment 4 Tomas Hurka 2015-07-30 13:11:54 UTC
None of the reports have:
-XX:MaxPermSize=384m
specified as command line option. Since all reports are from JDK 7, it means that default 96M PermSize is used and this causes OOME: PermSize.

For some reason launcher thinks that netbeans is running on JDK 8 and it did not append -XX:MaxPermSize=384m command line option. Note also that it happens only on Windows.
Comment 5 Tomas Hurka 2015-07-30 13:12:38 UTC
Reassigning to platform/launcher.
Comment 6 Libor Fischmeistr 2015-07-30 13:14:10 UTC
Without launcher log we cannot do anything...

To get launcher log please run NetBeans with --trace option:
netbeans.exe --trace launcher.log

Then please attach the log and reopen.

Thanks
Comment 7 Jaroslav Havlin 2015-07-31 11:17:19 UTC
I cannot reproduce this bug. When I start NetBeans  on Windows 7 64bit with JDK 7u51, IDE Log contains "-XX:MaxPermSize=384m". I tried both netbeans.exe and netbeans64.exe.

Maybe there is some problem with JDK installation.

Reporters, can you please try explicitly setting JDK home in netbeans.conf?
(netbeans_jdkhome, see http://wiki.netbeans.org/FaqNetbeansConf)
Thank you.


Product Version: NetBeans IDE Dev (Build 20150731-0f4c61a19fcc)
Java: 1.7.0_51; Java HotSpot(TM) 64-Bit Server VM 24.51-b03
Runtime: Java(TM) SE Runtime Environment 1.7.0_51-b13
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
User directory: C:\Users\jhavlin\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jhavlin\AppData\Local\NetBeans\Cache\dev
Comment 8 Jaroslav Havlin 2015-08-14 08:48:57 UTC
*** Bug 251514 has been marked as a duplicate of this bug. ***