By default students have restrictions on the amount of resources available to them on esus.  For example, the number of processes they may run at any given time, the amount of RAM their process may use, how many files can be open, etc.

By default java may try to use more RAM that a student is allowed and you will get an error.  The way around this is to use some of Java's parameters to set its memory usage to a reasonable amount.  This is accomplished using the -Xmx and -Xms flags. Giving them values of 1024m is suggested.  Example:

java -Xmx1024m -Xms1024m myprogram

Back to Systems FAQ index