I’m facing an issue here and after six days of looking around I decided
ask for some help here, after all a million heads can think a lot better
I have a Ubuntu 14.04 server setup with NGINX, HHVM, PHP5-FPM (as a
Percona MySQL, Memcached (which will be replaced by Redis). I have
fastcgi_cache setup for WordPress and object caching done over
All cool and dandy in theory, but not in practice.
This is a RamNode OpenVZ SSD VPS with 2GB of RAM and an Intel Xeon E5
two cores for my VPS. I also tested on a KVM SSD VPS with 2GB of RAM and
Intel Xeon E3 with four cores for my VPS.
Running Blitz.io on it the server is getting absolutely murdered by the
NGINX worker processes, which each one using 100% CPU according to top
htop. I usually run with the following pattern:
--pattern 999-1000:60 https://www.geeksune.com/blog/hello-world/
That makes makes CPU go to the roof and according to Blitz.io this is
result of that:
135 HITS WITH 57,734 ERRORS & 234 TIMEOUTS
Obviously that isn’t good. RAM usage stay under 250MB all the time and
seems that all those requests from Blitz.io are hitting the cache, as
Notice the HIT at the start. I set a new log format and added
$upstream_cache_status to it.
A similar setup on the same machine works just fine with Blitz.io, so
is definitely something wrong with my NGINX setup and it seems related
fastcgi_cache. I have the same results every time, even with just
Does anyone have a clue about what is happening? My configuration files
- /etc/nginx/nginx.conf - Ubuntu Pastebin
- /etc/nginx/sites-available/geeksune.com -
- /etc/nginx/conf.d/includes/ssl.inc - Ubuntu Pastebin
- /etc/nginx/conf.d/includes/security.inc -
- /etc/nginx/conf.d/includes/caching.inc -
- /etc/nginx/conf.d/includes/locations.inc -
Thanks in advance.
Posted at Nginx Forum: