Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Massive Performance differences between two Servers

Solved by Michael Gollmer View solution

Started by Michael Gollmer 6 years ago · 5 replies · 772 views
6 years ago

Hi there,

I developed a site for a client on one of my own servers and everything worked out pretty well. Frontend is crazy fast, Backend is crazy fast - everything as expected.

So now I deployed the page on the webspace of my client, that is hosted by a big provider and is even more powerfull than mine. But unfortunately the whole site got really slow (espacially the backend).

I enabled the debugger and tried to look up the problem and saw that the duration of the "Initialize"-Phase was the only thing that took very long.

image|690x239

Has anyone ever had such a problem before? I believe there could be something wrong with the curl-requests, but I can't look up the server logs.

Regards,

Michael

6 years ago

Hi there,

thanks for replying. I tried switching and it stays slow =/.
But I didn't get any error while switching between fopen and curl.

Edit: ... and I haven't changed the .htaccess yet. I was now able to test curl requests from cli and it worked pretty well.

last edited 10/22/20 by Michael Gollmer
6 years ago

Which PHP version do you use? Have your enabled a PHP cache (memcache, opcache etc.) ?

6 years ago

We are using PHP 7.3. The site is hosted at Strato (Strato Hosting Pro). Opcache seems to be enabled.

image|690x122

Here are the default config entries (I can change):

image|690x318

last edited 10/23/20 by Michael Gollmer
6 years ago Solution

Update:
I figured out why it's always so slow. As I expected earlier it has something to do with the requests made by the server. The above mentioned 60 seconds stayed the same all the time I analyzed the problem inside the backend.

So after trying a lot of system configuration stuff and found myself in the admin plugin configuration. I disabled the automatic check for updates and suddenly everything was fricking fast. The processing time dropped from 60 seconds to 493ms - only the overview page was still pretty slow. After disabling the news feed the overview was also very fast.

Has someone an idea how I can configure grav to run the automatic checks and still run fast? This would be the perfect solution.

(Anybody knows the requests urls which are called during the automatic checks?)

Update 30.10.2020
I'll close this thread. The reason for this problem is a 60 second timeout while grav is checking for plugin updates. I disabled the automatic check and the page runs fine. Unfortunately the support doesn't want to help me to analyze the problem and I have not enough rights on the server to do it myself.

last edited 10/30/20 by Michael Gollmer

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago