Login  Register

Using more (>4GB) memory is possible with linux AMD64

Posted by Jan de Sonneville on Aug 06, 2007; 11:48am
URL: http://imagej.273.s1.nabble.com/Using-more-4GB-memory-is-possible-with-linux-AMD64-tp3698700.html

Hi People,

Once in a while I read about memory issues using java applications. I
tested the following runtime conditions on an Ubuntu AMD64 installation on
both (dual) opteron and athlon processors:

java -jar -XmxNg -XX:+AggressiveHeap ij.jar
where you can replace N with the amount of gigabytes of ram you'd like to use

If you have multiple processors you can also add:
-XX:ParallelThreads=N --XX:+UseParallelOldGC
where N has to be replaced by the number of processors cores you'd like to
use (see dmesg)

I've tested this using Sun jre version 6 (installable through package
manager for ubuntu 7.04, be sure that you use the sun version of java and
not the standard GPL one)

The sun website shows us that there are limits on the amount of memory you
can use, and that the memory limit of every operating system (except
solaris) is 2,3,4 GB. I've no problems increasing the limit over 4 GB
using ubuntu AMD64. I've tested up to 8 GB without problems (except
swapping time as I don't have 8 GB of ram..)
So if you have more ram and you'd like to use it...use linux AMD64!

All the best, and Wayne thanks, keep up the good work!
Jan de Sonneville
([hidden email])