Mobile app version of vmapp.org
Login or Join
Samaraweera270

: Wordpress website with slow response (only for the first request) I've a weird issue with my wordpress website ( http://rohitnair.info/) . The "first request" takes ages to respond. Any subsequent

@Samaraweera270

Posted in: #AmazonEc2 #Nginx #Wordpress

I've a weird issue with my wordpress website ( rohitnair.info/) . The "first request" takes ages to respond. Any subsequent requests behave normally. Things I've observed while debugging


Clearing the browser cache and reloading works fine and the page loads fast enough
Clearing the cookies and reloading reproduces the issue.


I thus define "first request" in this context as a request with no cookies set for the domain. Another easy way to reproduce this issue is to use curl and not send any cookies. This is the output of curl -v

$ time curl -v rohitnair.info
* About to connect() to rohitnair.info port 80 (#0)
* Trying 23.21.171.95... connected
* Connected to rohitnair.info (23.21.171.95) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (i386-redhat-linux-gnu) libcurl/7.19.7 NSS/3.12.9.0 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: rohitnair.info
> Accept: */*
>


long wait

[response]

* Connection #0 to host rohitnair.info left intact
* Closing connection #0

real 1m0.518s
user 0m0.003s
sys 0m0.011s


As can be seen, the server takes more than a minute to return the response.

The stack is wordpress + nginx and hosted on Amazon EC2. I've also noticed that the request does not show up in the nginx access log till the response is served or the request is cancelled (not sure if this is expected behavior) I'm completely lost as to what could be causing this issue. Any help would be much appreciated!

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Radia820

Pingdom rates your site 77/100 (which is good), so, with the report of malware above I'm wondering if the problem might be local antivirus or anti-malware software blocking an attack - Microsoft security essentials often appears especially slow. It could also be a slow pickup on the database connection, which is common on shared hosting for wordpress.

Sucuri SiteCheck and virustotal both report your site is infected. I'd reccommend you take a look at this post on cleaning and securing an attacked wordpress.

You also appear to have significant layout issues in safari and firefox.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme