On Windows, I could change how much RAM Java could use by typing something like -Xincgc -Xmx2048M in the Java Runtime Parameters. How can I do that in Ubuntu?
If I am not mistaken they are the same in Linux. With the Java command you have the 2 options:
Here is an extract from doing a
So that basically sums it up about doubts using the same parameters.
To use this go to a terminal and type it with a jar program. In my example I am using the minecraft server:
Here is an image of what happens:
I should note that the parameters are Case Sensitive. So xmx1024M is not the same as Xmx1024M.
The same applies on Linux. If you want to make the options permanent, you can export the JAVA_OPTS environment variable.
I recommend to do it on a per-user basis. If you use bash, modify your .bash_profile:
export JAVA_OPTS = -Xincgc -Xmx2048M
After setting this, you need to restart shell sessions for it to apply.
Alternatively, you can also modify the system-wide profile in /etc/profile.
Edit: Settings for the Java Browser Plugin are defined in the Java Control Panel: http://docs.oracle.com/javase/1.4.2/docs/guide/plugin/developer_guide/control_panel.html.