java.lang.outofmemoryerror java heap space

751 views
Skip to first unread message

Dimitris Poursanidis

unread,
Jan 19, 2011, 10:09:16 AM1/19/11
to Maxent
After solving the asc problem, i setup all and start run the model.
After some minutes of running recieve this error :
java.lang.outofmemoryerror java heap space

Any idea??

spyros Tsiftsis

unread,
Jan 19, 2011, 10:41:30 AM1/19/11
to Maxent
which is your geographical area and the grid cell you are using? This
must be related to the files you are using.

Dimitris Poursanidis

unread,
Jan 19, 2011, 10:50:18 AM1/19/11
to max...@googlegroups.com
Cyprus is the AOI

Grid Cell is the WORLDCLIM

Now i try tha .bat to run

2011/1/19 spyros Tsiftsis <spyr...@yahoo.gr>

--
You received this message because you are subscribed to the Google Groups "Maxent" group.
To post to this group, send email to max...@googlegroups.com.
To unsubscribe from this group, send email to maxent+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/maxent?hl=en.




--
><._._._)))"> ... ><._._._)))"> ...><._._._)))"> ...><._._._)))"> ...




spyros Tsiftsis

unread,
Jan 19, 2011, 11:00:51 AM1/19/11
to Maxent
I realy don't know! I run Greece using raster data in 1 km (including
Worldclim data) and I have no problem!
Sorry

On 19 Ιαν, 17:50, Dimitris Poursanidis <dpoursani...@gmail.com> wrote:
> Cyprus is the AOI
>
> Grid Cell is the WORLDCLIM
>
> Now i try tha .bat to run
>
> 2011/1/19 spyros Tsiftsis <spyrt...@yahoo.gr>
>
>
>
> > which is your geographical area and the grid cell you are using? This
> > must be related to the files you are using.
>
> > On 19 Ιαν, 17:09, Dimitris Poursanidis <dpoursani...@gmail.com> wrote:
> > > After solving the asc problem, i setup all and start run the model.
> > > After some minutes of running recieve this error :
> > > java.lang.outofmemoryerror java heap space
>
> > > Any idea??
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Maxent" group.
> > To post to this group, send email to max...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > maxent+un...@googlegroups.com<maxent%2Bunsu...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/maxent?hl=en.
>
> --
>
> ><._._._)))"> ... ><._._._)))"> ...><._._._)))"> ...><._._._)))"> ...
>
> *WWF Island Wetlands<http://www.wwf.gr/index.php?option=com_content&view=category&layout=b...>&
> ELNAIS <https://services.ath.hcmr.gr/> & **My image
> gallery<http://www.flickr.com/photos/homoaquaticus>
> *

Dimitris Poursanidis

unread,
Jan 19, 2011, 11:32:33 AM1/19/11
to max...@googlegroups.com
Hmmm

Ok, and how you solve the problem of Crete?
I mean the lack of data in south crete?

2011/1/19 spyros Tsiftsis <spyr...@yahoo.gr>
To unsubscribe from this group, send email to maxent+un...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/maxent?hl=en.




--
><._._._)))"> ... ><._._._)))"> ...><._._._)))"> ...><._._._)))"> ...

Mat Bond

unread,
Jan 19, 2011, 11:36:38 AM1/19/11
to Maxent
That error message means that Maxent is running out of ram, see this
text taken from the help tag on Maxent:

Memory Issues

If the environmental layers are very large files, you may get "out of
memory" or "heap space" errors when you try to run the program.  There
are a number of ways to address this problem.
 
First, make sure that you are clicking on the maxent.bat file, rather
than the maxent.jar file.
Second, make sure that java is being given close to the maximum memory
available on your computer.  The maxent.bat file (or any command-line
invocation) should begin "java -mxXXXm", where XXX is a little less
than the number of megabytes of memory in your computer (e.g., use the
flag "-mx900m" if you have a gigabyte of memory).  It shouldn't equal
the amount of memory in your computer, otherwise "thrashing" will
occur as the last of the memory is consumed.  An exception is on
Microsoft Windows systems with multiple gigabytes of memory: Windows
cannot give java the large contiguous block of memory it desires, so
unfortunately you are limited to a maximum of about 1.3 gigabytes.  
Third, you can create SWD-format files (described above) containing
the environmental conditions at the sample localities and a random set
of background pixels (for example, using a GIS) so that the maxent
program doesn't need to load the large environmental layers files.  If
you provide the input in this format, you'll probably want to project
the resulting model onto your original environmental layers, so you
should give their location in the "projection directory".  The
projection process is memory-efficient, as it doesn't need to hold all
the environmental variables in memory at the same time.

If none of those work, you may have to make your model less memory
intensive by using less environmental layers or lower resolution
environmental layers...
Reply all
Reply to author
Forward
0 new messages