← Back to team overview

dhis2-devs team mailing list archive

Re: DHIS memory issues on Ubuntu

 

Hello Maimoona
Its better you create a setenv.sh file in the tomcat bin folder and set the
memory size.
For more details check
http://www.dhis2.org/doc/snapshot/en/implementer/html/ch08s02.html#d5e513 on
the implementer's documentation.

Cheers

Wilfred F. Senyoni
Computer Science and Engineering Department
College of Information and Communication Technologies
University of Dar es salaam


On Wed, Jan 29, 2014 at 12:29 PM, Maimoona Kausar <
maimoona.kausar@xxxxxxxxxxxxxxxxxx> wrote:

> Hi all,
> I am trying to deploy dhis.war on Ubuntu vm. It has 4GB of memory.
> Tomcat starts successfully and shows 'server startup in 233821 ms'.
>
> This is the first time I m accessing the deployed web app (i.e. no
> configuration done yet) and it throws following exception.
> http://pastebin.com/j2yWY3dH
>
> I have followed this but no luck.
> https://wiki.openmrs.org/display/docs/Troubleshooting+Memory+Errors
>
> <quote>
>
> In my endeavors to troubleshoot tomcat memory issues i performed the
> following in Ubuntu 10.04:
>
> *sudo gedit /etc/init.d/tomcat6*
>
> Changed (~line 81):
>
> *if [ -z "$JAVA_OPTS" ]; then*
> *        JAVA_OPTS="-Djava.awt.headless=true -Xmx128M"*
> *fi*
>
> To:
>
> *if [ -z "$JAVA_OPTS" ]; then*
> *        JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M -Xms1024M* *-XX:PermSize=256m
> -XX:MaxPermSize=256m -XX:NewSize=128m**"*
> *fi*
>
> </quote>
>
>
> Plz help me understanding the missing steps...
>
> Thanks,
>
> Maimoona
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to     : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help   : https://help.launchpad.net/ListHelp
>
>

Follow ups

References