When you type "java -version" in a console, what is the result ?
Antix is often used with old computer, are you sure to use a 64b distribution of Java ?
If you have a 32b version, the memory maximum usable by Java is 1Gb.
This could explain the memory outage.
Zurga