Answer the question
In order to leave comments, you need to log in
Why did the request to third-party servers suddenly start to hang or slow down?
VPS server.
The site has been working fine for 2 years. A couple of days ago, problems started at some point.
- All requests from the site to Google servers, such as Google captcha or requests to googleapis.com, started hanging.
The call goes through file_get_contents. In the logs I see:
PHP Warning: file_get_contents(...) failed to open stream: Connection timed out in
- Similarly, an attempt to create an image by a link to a third-party site is hanged by timeout.
- At the same time, here I began to work out git pull to the repository on bitbucket for
a very long time - pages began to open periodically for a very long time (can it somehow be tied to the web sockets that are used?)
Tell me, in which direction to dig?
PS I replaced file_get_contents with curl - it started working, but with brakes.
PSS Now different pages of the site are periodically loaded for a very long time. Moreover, with such brakes, the assembly of the page takes 50-55 seconds. In parallel, pages can be given to another visitor almost instantly, and I'm monitoring top loading - I don't see that there was any load on resources.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question