I have a WordPress site that works fine on the front-end but the backend admin pages take just over 120s to load. The page doesn't timeout - the server responds - it just takes a long time. I see no errors in the PHP or apache logs.
Obviously the 120s is a clue - I'm thinking a CURL request or something similar.
I have used mod_status to look at the server-status - I can see one process that is held in the "W" state (sending reply) for the duration of the long page load.
Obviously the WordPress page process winds it's way through many PHP scripts - how do I find out where the hold up is happening?
I have tried brute force methods of disabling plugins one by one but with everything pared back I still see the issue.
Running netstat seems to confirm it's a curl like issue;
# netstat --tcp Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 myip:http 12-34-56-78.dsl:56446 ESTABLISHED tcp 0 1 myip:35595 18.104.22.168:http SYN_SENT
The 1st entry is my IP making the page request, the 2nd entry is the server's IP - the request is not getting through the firewall. I don't control the firewall so I need to find where in the codebase this request is originating.