caching details on nginx+php-fpm
-
Hello!
I used cache info plugin with nginx+apache on my sites initially and it gave me useful details. So I increased WP memory limit to 68M or 128M, OPcache memory consumption to 128M or 256M, installed memcached. And everything was clear for me.
But then I switched my sites to nginx+php-fpm configuration because apache was slow and real bottleneck.
Now in cache info plugin I see WP memory usage double to 256M and more, OPcache usage is always 100% with hitrate no more than 15%. I increased OPcache memory consumption to 512M (that was not enough), then to 1024M, then to 2048M but nothing changed. OPcache usage is always 100% with hitrate 10 -15% no more. And I see that memcached and OPcache details (items, hits, misses) in plugin are common on all the sites so as they use one common shared cache memory buffer.
Seems strange to me but maybe that’s all right.
The question is if I have 10 sites on my VDS and when on apache they used near 150M opcache each with hitrate near 90%, should I now increase OPcache memory consumption to 20000M to see opcache usage less than 100% and hitrate 80% or more?
Regards, Alex
- You must be logged in to reply to this topic.