• Resolved astahov006

    (@astahov006)


    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

    • This topic was modified 3 days, 11 hours ago by astahov006.
Viewing 5 replies - 46 through 50 (of 50 total)
  • Plugin Author docjojo

    (@docjojo)

    opcache.revalidate_freq depends.
    higher value will speed up.
    typically in production a higher value is ok.

    in a developer env it is important to have a low value.

    so if scripts do not change very often, a hight value is ok.

    Thread Starter astahov006

    (@astahov006)

    Plugin Author docjojo

    (@docjojo)

    Thats good!
    Do you notice a speed increase?

    Increase the string to 96
    Increase the mem to 2048
    if you have 8GB total, 2GB for OPC is a good choice.
    increase max files to lets say 80000

    the total cached value will increase once all of your site have load and all the scripts are cached.

    the string memory as taken from the 2GB so you have to keep that in mind.

    you have a high hitrate now and usage is below 100.
    that’s good.

    Thread Starter astahov006

    (@astahov006)

    Yes. Site are fast enough now. Thanks.

    I also noticed that WP now uses less memory.

    • This reply was modified 8 hours, 58 minutes ago by astahov006.
    Plugin Author docjojo

    (@docjojo)

    You are welcome.
    That is because the OPC is taking load from PHP now … good!

    Please leave a positive review if you like.

Viewing 5 replies - 46 through 50 (of 50 total)
  • You must be logged in to reply to this topic.