After a clean install of Apache, my server had 200 req/second for the index.html file that came with Apache.
After installing MySQL, phpmyadmin, wordpress and phalcon the requests/second are 8-10… which is kind of absurd for a normal.
How can I pinpoint the cause of this?
The system stats are alright, I don’t understand what’s restricting the server itself: CPU 4.9% nice: 0.0% LOAD 1-core MEM 29.3% active: 143M SWAP 0.0% user: 2.3% irq: 0.3% 1 min: 0.09 total: 490M inactive: 252M total: 1024M system: 2.3% iowait: 0.0% 5 min: 0.05 used: 144M buffers: 16.2M used: 0 idle: 95.1% steal: 0.0% 15 min: 0.04 free: 346M cached: 288M free: 1024M
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What size droplet are you using for this configuration? On a 512MB droplet a full LAMP stack as you described will often cause you to exhaust your available memory as the MySQL process uses quite a bit on it’s own.
You may want to try enabling a swap file on your droplet (https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04) and see what optimizations you can apply to your MySQL configuration. Alternatively you could consider upgrading to a larger droplet or separating your database and web services onto two droplets.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.