Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Slow loading - php spends 58s waiting

$
0
0

@pierreozoux wrote:

I’m using the latest fpm docker image.
and there is something strange: here are some loading time from my browser:

index.php?module=Dashboard&action=embeddedIndex&idDashboard=1&idSite=1&period=day&date=yesterday&showtitle=1&random=2038
89 ms
index.php?date=yesterday&module=Live&action=widget&widget=1&idSite=1&period=day
138 ms
index.php?date=yesterday&module=Referrers&action=getSearchEngines&widget=1&isFooterExpandedInDashboard=true&viewDataTable=graphPie&columns[]=nb_visits&columns_to_display[]=nb_visits&idSite=1&period=day
175915 ms
index.php?date=yesterday&module=DevicesDetection&action=getBrowsers&widget=1&idSite=1&period=day
175941 ms
index.php?date=yesterday&module=UserCountryMap&action=visitorMap&widget=1&idSite=1&period=day
117700 ms
index.php?date=yesterday&module=VisitsSummary&action=getEvolutionGraph&columns[]=nb_visits&columns[]=nb_uniq_visitors&columns[]=nb_pageviews&columns[]=nb_keywords&widget=1&columns_to_display[]=nb_visits&columns_to_display[]=nb_uniq_visitors&columns_to_display[]=nb_pageviews&columns_to_display[]=nb_keywords&forceView=1&viewDataTable=graphEvolution&idSite=1&period=day
58650 ms
index.php?date=yesterday&module=Referrers&action=getWebsites&widget=1&idSite=1&period=day
58598 ms

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!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles