@SuppaMan wrote:
Hi!
I have noticed some strange behaviour in Matomo API.
Until a few days ago I had Matomo version 3.7.“don’t remember exactly”, where i had a problem of general slowness, both in the main report page and in accessing the settings and sections without report. When opening whatever page my server’s hard disk started to make noise.
I have not found solutions for this particular problem.
Then i tried the API. I’d like to use the API to retrieve daily and total visits for my websites, so i built these links:
matomo/?module=API&method=VisitsSummary.getVisits&idSite=1&period=day&date=today&format=JSON&token_auth=…
and
matomo/?module=API&method=VisitsSummary.getVisits&idSite=1&period=range&date=2018-01-01,today&format=JSON&token_auth=…
As I expected, even the API was very slow.
The strage thing is that once the API slowly loaded the results, if I do the same request, it will answer quickly, and if I do the same request within a minute, the same quick response arrived, like if it had a cache or something else.
After a minute, i had to wait for the same slow times.
Then Matomo 3.8.0 arrived. Right ater update I noticed a nearly istant loading times regarding the main interface, including reports and settings pages.
I tried again the API, but no luck, it did’t change anything.
Then i decided to do a fresh install of Matomo 3.8.0, to ensure the problem was not regarded to the 3.7.X version previous data.
Same fast behaviour of the main and settings pages and same slow behaviour of the visit count API.
Am I doing something wrong?I’m on Windows Server 2012 R2, with the last versione of Apache, 2.4.38, the last versione of PHP, 7.3 and the last version of MySQL server 5.7 (because before Matomo fresh reinstallation, i reinstalled also all server-side softwares).
The previous version of Apache, PHP e MySQL were 2.4.35, 7.2.1 and 5.6.Thanks for the help!
Posts: 2
Participants: 2