
Luckily, VirtualBox allows you to easily increase the size of your virtual disk. But how do you achieve this task for your VirtualBox virtual machine? But what do you do when your virtual machine runs out of disk space? On real hardware you would swap the hard disk for a larger version. Virtual machines provide a great playground for learning about and testing out all sorts of Linux related things.
#Increase os x vm size how to
It provides you with step-by-step instructions on how to increase the disk size of your VirtualBox virtual machine. This article will help you along the way. Just keep in mind that afterwards you still need to increase the size of your partitions accordingly.
#Increase os x vm size license
This text is made available here under the terms of the Eclipse Public License v1.0.Is your VirtualBox virtual machine starting to run out of disk space? No worries, because VirtualBox allows you to easily increase the disk size of your virtual machine. This FAQ was originally published in Official Eclipse 3.0 FAQs. If you are using either of these platform combinations, add the -XX flag to the eclipse.ini as described above.
#Increase os x vm size mac os x
It seems this may have been a known bug on Mac OS X for 3.3.0 as well. Note: Eclipse 3.3.1 has a bug where the launcher cannot detect a Sun VM, and therefore does not use the correct PermGen size. If you are using either of this version, add the -XX flag to the eclipse.ini as described above. Note: Eclipse 3.6 and below on Windows has a bug with Oracle/Sun JDK 1.6.0_21 (July 2010) where the launcher cannot detect a Oracle/Sun VM, and therefore does not use the correct PermGen size. 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:

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. 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.
