[OSM-talk] josm reports out of memory with 83 mb OSM file

Beej Jorgensen beej at beej.us
Wed Nov 28 02:06:37 GMT 2007


Maning Sambale wrote:
> Exception on Toolkit thread: java.lang.OutOfMemoryError: Java heap space
> java.lang.OutOfMemoryError: Java heap space

The Java VM allocates space in advance, and when it runs out, this 
happens.  You can ask it for more, e.g. 1.21 GB, with:

java -Xmx1210000000 -jar josm-latest.jar

Where -Xmx is:

     -Xmx<size>        set maximum Java heap size

-Beej





More information about the talk mailing list