[OSM-talk] How to manage GPX files?

Renaud MICHEL r.h.michel+osm at gmail.com
Wed Dec 30 12:59:47 GMT 2009


Le mercredi 30 décembre 2009, Maarten Deen a écrit :
> > enlarge your Java VM
> > eg java -Xms1536m -Xmx1536m -jar /usr/share/josm/josm.jar
> 
> Is it just me or is there a limit to the size of the Java VM you can
>  enter in Windows XP? I've had on separate occasions had to lower the
>  limit to something like 1300 because it just wouldn't run.

32bits windows JVM (at least from SUN) have problem if you try to allocate 
more than 1400Mo (with a hard crash of the JVM), on Linux it can go up to 
1800Mo. You should'nt have any problem with 64bits JVMs.

By the way, reserving all your memory at startup (-Xms1536m) is only useful 
if you known it will very quickly (like a few seconds after startup) use all 
that memory, if not it will suck up all your memory and keep it until it 
need it (maybe never).
You should leave the -Xms small (or not set it at all) and only set -Xmx, 
that way you tell the JVM how much memory it is allowed to use at most and 
it will take memory as needed.

-- 
Renaud Michel




More information about the talk mailing list