← Back to team overview

dhis2-users team mailing list archive

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

 

Hi Randy

Some of this is a bit more voodoo than science ... but giving your jvm 6G
when you only have 4G will not help the cause (I see Saptarshi has talked
about paging).  And if you have postgres on the same machine, she needs
some too.

DHIS2 has two different stress modes - during the day when it might be
fielding lots of connections and at night when its doing this mammoth
datamart job.  It's hard to know how to optimize for both.  In your case
you are only interested in the latter.  So its a question of how best to
share the memory out between TC and postgres.

I''d suggest giving 2G to tomcat heap and hopefully leaving about 1G for
postgres.  Along the lines of:
JAVA_OPTS="-Xmx2G  -XX:MaxPermSize=256m"

I am not sure how optimized postgres comes out of the box on windows 8, so
could be some useful tweaking there too.

Bob

On 22 February 2013 21: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