No subject


Tue Jan 13 05:11:15 GMT 2009


On 1/17/09, Renaud MICHEL <r.h.michel+osm at gmail.com> wrote:
> Le samedi 17 janvier 2009 =E0 05:20, David Newman a =E9crit :
>> java -jar -Xms2g -Xmx2g josm-latest.jar
>>
>> This sets both the minimum and maximum java heap size to 2GB.
>
> Whoa!
> Never set the minimum heap size (-Xms) this high!
> The virtual machine will try to allocate all the minimum heap size at
> startup, filling uselessly your memory.
> On the other hand, you can set the maximum heap size (-Xmx) very high if =
you
> want, it will only be used if needed (but I'd recommand not using a value
> higher than your physical memory, except if you are working on a server
> environment).
> Actually you probably don't need to change the minimum heap, memory will =
be
> allocated as needed. Setting the minimum heap is useful if you know your
> program will always use that much memory and you want it quickly allocate=
d
> at startup.
>
> --
> Renaud Michel
>
> pgp: 0x630E6AC4
> (fingerprint: E051 75D0 0E02 4D7B 0384  5D8F 2A70 C289 630E 6AC4)
>
>
> _______________________________________________
> newbies mailing list
> newbies at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/newbies
>


--=20
Jeffrey John Martin
dogshed at gmail.com



More information about the newbies mailing list