I'm testing response time of my VPS server:

curl -s -w %{time_total}\\n -o /dev/null http://www.example.com

The values are typically round 300ms, Google suggests that it should be lower than 200.

Looks like this does not depend on the CMS used, the same with Wordpress and other platforms. Simple php pages with almost no includes have values round 175.

Maybe it's some Apache or DNS misconfiguration?
How would you debug this and see how to improve the response time?

closed as too broad by yoonix, womble, Ward, masegaloeh, Roman Aug 27 '15 at 9:22

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


There are a number of factors that could be contributing to this:

  • DNS Lookup (how fast the DNS servers respond to your VPS)
  • Network latency from your server out to the internet (how many ms it takes for a request to get through the network stack to the outside world)
  • Distance latency between your VPS and the remote website (how long it takes for your request to get across the open internet from your server to the remote server)
  • Network latency (again) for the remote server's network stack.
  • How long the remote site takes to respond (is it a slow website? it may take time to build the page)
  • The first three items after DNS lookup again in reverse order

Try pinging the remote site, or running a trace route to see where the slowdown it

  • Thanks for the tips. Could you please add some command line samples for each paragraph I could run to check? – Sfisioza Aug 25 '15 at 18:41

Not the answer you're looking for? Browse other questions tagged or ask your own question.