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 240147

Summary: JDK8 ... unsupported options in launcher (MaxPermSize, PermSize)
Product: platform Reporter: Marian Mirilovic <mmirilovic>
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: NEW ---    
Severity: normal CC: anebuzelsky, jskrivanek, kimsp, mzao
Priority: P4    
Version: 8.0   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Mirilovic 2014-01-09 09:29:49 UTC
Product Version: NetBeans IDE Dev (Build 201401090002)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.5.0-45-generic running on amd64; UTF-8; en_US (nb)


Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=32m; support was removed in 8.0
Comment 1 Antonin Nebuzelsky 2014-01-10 11:52:22 UTC
The warnings in log are harmless and effectively the change with JDK8 means that the previous permgen area has been replaced with the use of native memory inside JVM and the use is limited only by the amount of user's native memory.

http://mail.openjdk.java.net/pipermail/hotspot-dev/2012-September/006679.html
Comment 2 Jiri Rechtacek 2014-01-13 14:08:11 UTC
Removing these switches (i.e. -XX:PermSize=32m, -XX:MaxPermSize=384m) is too complex and might be risky if running IDE on JDK 7 without these switches, in a case of wrong detection of JDK 7 in netbeans launcher. The switches will be removed when IDE runs of JDK 8 or newer only.