Hi
We recently upgraded our DHIS2 version from 2.33.9 to 2.37.7.1
As far as I can tell everything went fine with the upgradee, but the dashboards take too long to display data (I clocked around 11 minutes to have data for a single dashboard), and most of the time I have timeouts. But the same dashboards would take less than 4 minutes to display data on the previous version of DHIS2 (2.33.9).
I did some tests using Data Visualizer, and selected a few program indicators, one orgunit and 1 week, and it takes around 9 minutes to return the data. The same test using 2.33.9 returns data in less than a minute.
This is happening in the production server.
Before doing the upgrade, we used a test server (a virtual machine with almost the same specifications as the production server 8CPUs and 20GB RAM) and this test server using DHIS2 2.37.7.1 performed a little bit slower than the production server when using 2.33.9, but is performing faster than the production server now using 2.37.7.1. With the test server I was able to get data on all the dashboards in under 10 minutes.
I’m trying to understand what could be going wrong with the production server.
The specifications for the production server are: 8CPUs, 64GB RAM, 200GB 100GBSSD, DHIS2 2.37.7.1, Java 11.0.16, Ubuntu 18.04.4
Just making sure it’s not a cache issue, are you accessing the upgraded instance from the same browser that you accessed the instance before the upgrade. This could also be a cache issue. Please try using a new browser (browser profile) which you have not used to access the instance before? If you don’t see these issues then it’s a cache issue which can be easily cleared.
Hi @Gassim
I usually do my tests using incognito (private mode), just to make sure I won’t be dealing with cache issues in the browser.
So I think this may not be related to browser cache,
The message that is displayed when opening the Data Visualizer correspondind to the dashboard is “Something went wrong, An unkwon network error occurred”
Any ideias on how to debug this one. I’ve been trying to do some performance tuning on Postgres, but still the problem remains
Hi @rithvik
I found out that timeouts were happening because we’ve configured Nginx as a proxy server, and it had 800 seconds timeout for the connections. Since the queries are taking more than 14 minutes, it returned the network error. Thanks for that tip.
I’ve increased the timeout period to allow more time for the queries return data to DHIS2.
But still, there is pending issue of the queries taking too long (some pivot tables take 103 minutes to return data). Any ideas on how to fix this.
@rithvik
The pivot tables uses quite complex program indicators. About the period range I can’t tell if it can be considered large or not, in our case our monthly calendar starts from 21st of previous month and ends on 20th of current month. So we had to manually insert all those 30 days individually in the period of the analysis.
We are also facing similar issue after upgrading to version 2.37.7.1. The instance has about 300 program indicators ,about 51 of which are ENROLLMENT analytic type.