I’m using the latest fpm docker image.
and there is something strange: here are some loading time from my browser:
So it looks like, there is something that prevent php to execute during ~58s.
I have the cron activated, the dashboard generation is off. I moved MySQL to SSD, it doesn’t help. I checked mysql, and it looks like idle. The server cpu, memory and swap are fine.
I put the site behind a login wall, to see if somebody was maybe hammering some endpoints, but didn’t change anything.
I tried with the apache version of the docker image, still the same.
I also tried the nginx config recommended, no luck.
I cleaned the database of data older than 6months (now the db size is ~600MB).
I activated custom variables, and conversion tracking some months ago, so this could be it?
But where is this php spending time? And why 58s? It looks like a timeout to me, but actually, I get the result after 58s.
If you could tell me how to activate more logging, I’d be really happy!
It is just a suggestion, but you may experience the downside of not caching reports - if these loading times occur everytime you reload your dashboard, then that would be an indicator that the needed reports are re-calculated instead of fetched from a cache.
This shouldn’t happen, since yesterdays reports will not change, so you shoud get to see quick loading reports from the cache after having processed them once.
To access the report cache settings, see Recalulate data for goal graph
Long loading times on the very first request for a certain period can take that long if there is a lot of data to evaluate, that really depends on your server capacities.
This is already configured.
This morning, I installed redis, and configured it to be the main cache, but still the same issue.
I’m sure there is a timeout somewhere. Something that takes ~50s to timeout.
Which version are you on exactly? Does this happen on every pageload in the Piwik backend or just sometimes / arbitrarily? I have experienced similar issues as well, so it would be very interesting to get to the bottom of this.
Thanks for offering help!
Yes, always ~55s.
I’ll actually try to update an other piwik that I have, I think it doesn’t have this issue, and the setup is the same.
I’ll try to update each version and see if I can pin the problem to one version. (I’m not sure, but I think it is worth trying)