So I've got nginx and php-fpm on a cloud server. Using apache benchmark with these settings:
ab -n 300 -c 5 http://example.com/
So the cloud server (from rackspace) was a 256mb one. I ran htop while apache benchmark was going so I could see the server resources.
All four processors (which, do I just have a part of four individual processors on rackspace? I'm not sure how much I have access to) are at 100% (or 98% or something way high) the entire time apache benchmark is running.
Currently I get 15 requests per second. My first thought was to resize the server (I changed it to the 512mb one, so it should have twice as much as everything.). Still, requests per second were exactly the same and processor usage was at/near 100% the whole time.
Then I tried changing php-fpm to have a static 20 processes (instead of 10). This yieled the same results as before.
What could the bottleneck be?
My general application (written in php) on this particular page just connects to a database and gets a list of products. It then just lists them in a table. Not a whole lot of complicate queries (though there are quite a few)
So maybe it's database related?