Question

Want to get decrease the server response time

Posted April 15, 2016 2.7k views
PHPDigitalOceanHigh Availability

Hello,

I am looking to get decrease the server response time. Currently for one request, it takes around 1 min. I need to get it done in 1-3 sec itself.

Can anybody help me out on this?

I am using an Ubuntu 2GB Memory | 40 GB disk | NYC.

Please advice.

Thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers

When you say it takes around 1 min to do one request - what is that request doing? Sounds like a PHP script is messing up / taking a long time to process.

I doubt very much its a hardware or location based issue, but to rule it out you can do some simple steps:

  1. Ping your server (should give you a transit time)
  2. Try requesting a basic HTML page eg. a “Hello World” page and see how long that takes

I guess you need to get a good cache plugin. Every request on your server is processed as new req. Cache plugins can drastically up your server progress. Even I’m using cache on my site to speed up the loading time.

Submit an Answer