Post DHIS 2.30 Upgrade - RAM and CPU Issues

Dear all,

We upgraded our system from 2.26 to 2.30 in our production instance. Since then, the CPU load has increased considerably:

Is this normal?

Also, we think there’s a possible memory leak in the app because the RAM usage keeps growing and we have to restart the app every 5-6 days to reclaim the RAM.

Data before 2019-03-24 are of DHIS 2.26. That dip in RAM on 2019-04-01 is when we restarted the app.

We have also increased number of attributes required to search in Tracked Entity Instance. It helped a bit but nothing too significant.

Any help is highly appreciated.

Thank you.

2 Likes

Hi @Aatish_Neupane,

I think this will be best advised by our @dhis2-backend team. Kindly be patient as one of our team members will get back to you.

Best,

James.

1 Like

@Aatish_Neupane

I’m not sure what you mean when you say that you restarted the “app” - are you referring to restarting the DATABASE INSTANCE (aka restarting tomcat), or are you referring to one specific app within the system?

Either way I agree that there seems to be some erratic behaviour (memory leak or whatever). I reported the same with regard to the Tracker Capture app some time back (see JIRA DHIS2-6201), and I’ve recently confirmed this slow-down multiple times: As you edit more than 5-10 TEIs, the app responds slower and slower until it crashes (snap error, which seems to clear out the browser cache) or you use the Browser cache cleaner.

Hopefully somebody from the back-end team will respond, so that an in-depth investigation can take place to identify the root cause(s) of this.

Best regards
Calle

2 Likes

@Calle_Hedberg

By restart, I meant restarting the Tomcat instance (service tomcat7 restart).

Users have reported similar slowdown issues as you described in DHIS2-6201 as well. I was assuming it must have had been due to this possible memory leak (?). Do you also notice increasing RAM usage in server?

Yeah, hopefully somebody from backend team can look into this issue because the only temporary workaround for our case is a Cron job that restarts the Tomcat instance every night.

1 Like

@Aatish_Neupane

wow, still using Tomcat 7? Guess it works, but there would be performance and security gains from moving to Tomcat 8.5.x…

Best regards
Calle

1 Like

Hi,

We are also having similar issues with memory (RAM)

The configurations are as follows,

  • RAM : 16GB

  • CPU : 4 core (1.80GHz)

  • DHIS2 details : Version: 2.30, Build revision: 24c299e, Build date: 2019-10-31.

  • Tomcat : 8.5.30

  • JAVA_OPTS=-XX:+UseG1GC -XX:+UseStringDeduplication -Xms512m -Xmx9096m -XX:-UseGCOverheadLimit -XX:MaxHeapFreeRatio=30 -XX:MinHeapFreeRatio=10

I would highly appreciate any suggestions/help.

1 Like

We are also facing same challenges (2,30 Build bf753d4, RAM 15 GB, still Tomcat 7): increased RAM, memory leaks, garbage collector failures that are likely related to Tracker capture. @Mohammad_Ullah perhaps this it’s been already tackled in 2.33, check from release notes:

2 Likes

I am the OP and If this helps anyone, we’re still using 2.30 but with build version of f2a4e3e, and it has been stable since. I would say, if situation permits, try with different build versions.

https://ci.dhis2.org/job/dhis2-2.30/

1 Like