← Back to team overview

dhis2-users team mailing list archive

Re: Optimal settings for JAVA_OPTS on a 4 gig Windows 7 computer?

 

Another thing I forgot to mention is that Hotspot still likes allocating
memory in 256k chunks.
So -XX:MaxPermSize=256M is more ideal

All of this will change with Java8, where PermGen is going to be replaced
similar to JRockit... but that's for another day.

---
Regards,
Saptarshi PURKAYASTHA

My Tech Blog:  http://sunnytalkstech.blogspot.com
You Live by CHOICE, Not by CHANCE


On 23 February 2013 02:22, Saptarshi Purkayastha <sunbiz@xxxxxxxxx> wrote:

> With your settings, I think there will be too much paging happening and
> the heap space is the worst place to page.
> The reason for the paging is you might have nearly free 2.5GB RAM
> available (windows might use the remaining) and you've set the heap space
> from 3Gb to 6Gb, which will always nearly page.
>
> So, I would say the -Xms1024m -Xmx1500m should be safest for 4Gb, given
> that you'd run parallel GC in some memory that will be beyond the heap.
> All of this assuming that you have x64 Java as well... just having windows
> x64 won't be enough.
>
> ---
> Regards,
> Saptarshi PURKAYASTHA
>
> My Tech Blog:  http://sunnytalkstech.blogspot.com
> You Live by CHOICE, Not by CHANCE
>
>
> On 22 February 2013 22:53, Wilson,Randy <rwilson@xxxxxxx> wrote:
>
>>   Does anyone have suggestions for the optimal settings for JAVA_OPTS on
>> a 4 gig Windows 7 64 bit OS?****
>>
>> ** **
>>
>> My computer hangs every time I try to run the DATAMART process.****
>>
>> ** **
>>
>> Current settings are: SET JAVA_OPTS=-Xmx6000m -Xms3000m
>> -XX:MaxPermSize=500m -XX:PermSize=300m****
>>
>> ** **
>>
>> *Randy Wilson*****
>>
>> ** **
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dhis2-users
>> Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dhis2-users
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>

References