Error: "Please refer to help button: java.lang.OutOfMemoryError: Java
heap space"
I am running this on a single processor G5 Mac with 1.25 GB RAM.
Thanks,
Brice
java -mx512m -jar maxent.jar
Which allocates 512 megs of memory to maxent. If you have more than
that available to you, you can just change that number and it should
fix your problem.
If you're running on a Mac, the .bat file probably won't work for you
-- it's for MS Windows users. Instead, start Maxent from a command
window using, for example:
java -mx1000m -jar maxent.jar
-- Steven
> > Brice- Hide quoted text -
>
> - Show quoted text -
From the readme.txt file that comes with the Maxent code:
Maxent.bat assumes that your computer has at least 512 megabytes of
memory. If this is not the case, you should edit the file (for
example, using Notepad) to reduce the amount of memory it requests.
Just replace the number "512" with a little less than the amount of
memory your computer has. You also can increase the amount of
memory available to the program in this fashion. If your computer
has more than 512 megabytes of memory, you should increase the
amount described in the file. For example, if your computer has a
gigabyte of memory, replace the number "512" with "900" (leaving a
little for other programs). However, if your computer is running
Microsoft Windows, there is unfortunately an upper limit of about
1.3 gigabytes that Windows can give to Java.
If you run under Linux, there should be no problem using all the
available RAM. I would guess the same is true for Macs, but I don't
know. For Windows, you're pretty much limited to about 1.3 GB, with
the exact number varying from PC to PC.
If you want to see what Java's complaint is, open a command window
manually and paste in the command line from maxent.bat.
-- Steven