By default, we set the Java heap (min and max) values to 64 MB. This can easily be changed by performing the following steps.
1. SSH into your account using the root user (or SSH in as another user and 'su' to root).
2. Open the file /etc/profile.d/java.sh.
3. Edit the line that shows "export _JAVA_OPTIONS='-Xms64m -Xmx64m'". The value 64m stands for 64 MB of Heap.
4. Once you have made your changes, save the file and exit.
5. You can now either restart your VPS using the Control Panel or log off and back on. Then restart the necessary services.
6. To ensure the new value is being set, type 'echo $_JAVA_OPTIONS' at the command prompt. It should reflect the changes that were made.