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

Maning Sambale emmanuel.sambale at gmail.com
Fri Nov 30 01:37:34 GMT 2007


Thanks! 

On Wed, 2007-11-28 at 12:20 +0100, Dirk-Lüder Kreie wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Beej Jorgensen schrieb:
> > 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
> 
> Reportedly the maximum on 32 bit systems is 1536M (yes you might
> abbreviate it in this way for the command line) and on windows it's
> 1300M (again: reportedly)
> 
> Furthermore you shouldn't give java more than you have in total RAM,
> preferably you use a bit less, since heap space is not the only kind of
> memory java uses.
> 
> on a 1 GB RAM machine I'd suggest in the vicinity of -Xmx512M or -Xmx768M
> 
> - --
> 
> Dirk-Lüder "Deelkar" Kreie
> Bremen - 53.0952°N 8.8652°E
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> 
> iD8DBQFHTU7/FUbODdpRVDwRAsdYAJ0ZsS7rGPT1Jqqu2m7agORDBfQmTgCfTqKv
> vVVFdm+LkQVoRc+D/zZqu/c=
> =D+Ur
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/talk





More information about the talk mailing list