← Back to team overview

dhis2-users team mailing list archive

Re: Please help me for a blank run-able DHIS2 database

 

Hi Liem,

How much RAM does your system have? My laptop has 4GB of RAM and I am able
to run the DHIS2 (with Sierra Leone DB) without any problem with the
following settings:

JAVA_OPTS  -Xmx512m -XX:MaxPermSize=256m

Tomcat : 8.0.15

Java 7

DHIS 2.18

Psql 9.3

What version of the DHIS2 have you deployed?

Regards,

Michael

On 22 April 2015 at 04:59, Liem Le Duy <liem.leduy@xxxxxxxxxxxxxx> wrote:

> Hi everyone,
>
>
> 1. Using command-line to start Tomcat to see error, I can not see any
> error thrown out on screen. But I see into the log file, there is a message
> "No Spring WebApplicationInitializer types detected on classpath"
>
> 2. To change JAVA_OPTS
> I already try some values, you can see some values in the SEV image below
> that start by REM. But performance still slow
>
> 3. In the performance image, I captured the %CPU that Tomcat process take
> (at the first line)
>
> Please correct me if any my mistake of configuration
>
>
> On Wed, Apr 22, 2015 at 3:44 PM, Liem Le Duy <liem.leduy@xxxxxxxxxxxxxx>
> wrote:
>
>> It's very slow on my pc now, I will try to follow all your suggest and
>> report later
>>
>> thank you all a lot
>> Best
>>
>> On Wed, Apr 22, 2015 at 3:24 PM, John Lewis <johnlewis.hisp@xxxxxxxxx>
>> wrote:
>>
>>> Hi Liem,
>>> you need to set memory for tomcat.
>>>
>>> JAVA_OPTS="-Xmx1024m -Xms1024m -XX:PermSize=512m -XX:MaxPermSize=1024m"
>>>
>>> On Wed, Apr 22, 2015 at 3:19 PM, Liem Le Duy <liem.leduy@xxxxxxxxxxxxxx>
>>> wrote:
>>>
>>>> Hi Michael,
>>>>
>>>> Yes, correctly, I have checked the Tomcat process always take more than
>>>> 80% CPU
>>>>
>>>> I will try to start manually to see what happened
>>>>
>>>> Thank you a lot
>>>> Liem
>>>>
>>>>
>>>>
>>>> On Wed, Apr 22, 2015 at 3:09 PM, Michael Mwebaze <
>>>> michael.mwebaze@xxxxxxxxx> wrote:
>>>>
>>>>> Hi Liem,
>>>>>
>>>>> if you deployed the war into tomcat, you might also want to increase
>>>>> the memory allocation to your tomcat. This will help significantly. Also if
>>>>> possible, start Tomcat from the command line so you are able to see if any
>>>>> exceptions are being thrown so you can troubleshoot. I hope this helps.
>>>>>
>>>>> Regards,
>>>>>
>>>>> Michael
>>>>>
>>>>> On 22 April 2015 at 04:03, John Lewis <johnlewis.hisp@xxxxxxxxx>
>>>>> wrote:
>>>>>
>>>>>> Hi Liem,
>>>>>> How have you installed dhis2 using dhis2 live or individual
>>>>>> component.
>>>>>> you can create a database (empty) and use that database name in
>>>>>> hibernate.properties file.
>>>>>> is it h2 database or postgres.
>>>>>> John
>>>>>>
>>>>>> On Wed, Apr 22, 2015 at 3:00 PM, Liem Le Duy <
>>>>>> liem.leduy@xxxxxxxxxxxxxx> wrote:
>>>>>>
>>>>>>> Dear,
>>>>>>>
>>>>>>> My name is Liem, I am from Viet Nam. I am newbie in DHIS2
>>>>>>>
>>>>>>> I already installed DHIS2 on my pc with Serra Leon data example, the
>>>>>>> web site work but the performance is trouble. I can only log-in, any action
>>>>>>> after log-in successful take long time, I did some actions such as "kick
>>>>>>> profile button".. then waited but the browser always in progress of
>>>>>>> connecting and return nothing for us
>>>>>>>
>>>>>>> I worry about of Serra Leon example data is huge, so that it cause
>>>>>>> performance
>>>>>>>
>>>>>>> Actually I hope to have a blank database version that come up with a
>>>>>>> lit bit data such as user, role,..but can be run-able however with more
>>>>>>> than 320 tables I still not clarified on so I dont know what first point to
>>>>>>> start to have it
>>>>>>>
>>>>>>> So I think to you!, I will be very appreciated if you can send me a
>>>>>>> blank run-able data or suggest me some clues so I can easy to create it
>>>>>>>
>>>>>>> Thank you so much, for reading & understand my condition
>>>>>>>
>>>>>>> I am looking forward to your response
>>>>>>> Best regards
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>

Follow ups

References