← Back to team overview

dhis2-users team mailing list archive

Re: [Dhis2-devs] DHIS memory issues on Ubuntu

 

Hi Maimoona, since you only have 4GB RAM, you cannot reserve all of it for
the JVM, which is what you are doing here:
-Xms4000m

I suggest you reduce this to 2 GB or something like that


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

> Thanks Wilfred. Its giving me error
>
> Could not create the Java virtual machine.
> Error occurred during initialization of VM
> Could not reserve enough space for object heap
>
> config file is here http://pastebin.com/nMABm7hA
>
>
> On Wed, Jan 29, 2014 at 2:41 PM, Wilfred Senyoni <senyoni@xxxxxxxxx>wrote:
>
>> 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
>>>
>>>
>>
>
> _______________________________________________
> 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
>
>


-- 
Knut Staring
Dept. of Informatics, University of Oslo
+4791880522
http://dhis2.org

References