[OSM-newbies] JOSM -Xmx256M

Claudius claudius.h at gmx.de
Fri Sep 11 19:32:17 BST 2009


Am 09.09.2009 23:22, james pruett:
> Hi,
>
>   In JOSM, when I open california.osm, I get the error: Please add more
> memory. Try -Xmx###M.
>
>   I always do what I am told, but these didn't seem to work. From DOS I tried:
>
>   C:\WINDOWS\system32\javaws.exe   -localfile  "C:\Documents and
> Settings\jdpruett\ApplicationData\Sun\Java\Deployment\cache\6.0\21\73111055-75bc421c
> -Xmx256M"

The parameter -Xmx###M has to be applied to the hava call you are doing 
to execute josm. For me (using 2 GiB of memory) it looks like this:

"C:\Program Files\Java\jre6\bin\javaw.exe" -Xmx2048M -jar 
"C:\Users\Claudius\Downloads\josm-latest.jar"

You need to adapt your link to:
a) your local Java Runtime Environment installation (that's the first part)
b) your downloaded location JOSM location.

You need large memory especially when working with the WMS-Plugin.

Claudius





More information about the newbies mailing list