Max 6 gen
This alleviates the need to put it under -vmargs (where non-Sun JVM's could fail because they don't understand that option). The option -launcher.XXMaxPermSize is something that the launcher reads (not the JVM) it tells the launcher to automatically size the JVM's perm gen if it (the launcher) detects a Sun JVM that supports that option. The Eclipse launcher is only capable of identifying Sun VMs on Windows. With the above arguments, if the VM being used is a Sun VM and there is not already a -XX:MaxPermSize= VM argument, then the launcher will automatically add -XX:MaxPermSize=256m to the list of VM arguments being used. On Windows, Eclipse ships with the following lines in the eclipse.ini file:
![max 6 gen max 6 gen](https://www.greenit.ie/wp-content/uploads/2018/10/max-shield-extreme-case-ipad-5-6.png)
Options starting with -X are implementation-specific and may not be applicable to all JVMs (although they do work with the Sun/Oracle JVMs).Įclipse 3.3 and above supports an argument to the launcher: -launcher.XXMaxPermSize. Run java -X for the list of options your VM accepts. Note: The arguments after -vmargs are directly passed to the VM. The recommended way to do this is via your eclipse.ini file.Īlternatively, you can invoke the Eclipse executable with command-line arguments directly, as inĮclipse -vmargs -XX:PermSize=64M -XX:MaxPermSize=128M An easy, if somewhat memory-hungry fix is to enlarge the maximum space for these objects by addingĪs an argument to the JVM when starting Eclipse. PermGen is the permanent generation of objects in the VM (Class names, internalized strings, objects that will never get garbage-collected). If you see : PermGen space errors, you need to increase the permanent generation space available to Eclipse.
![max 6 gen max 6 gen](https://www.all4phone.com/eng_pl_Apple-iPhone-XS-11-Pro-MAX-Lightning-GRIFFIN-Car-Charger-53778_1.jpg)
The -XX:(Max)PermSize option makes no difference (the JVM will ignore it, so it can still be present). Note: Oracle Java 8 does not have a separate permanent generation space any more.