• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question Opcache & PHP-FPM Questions

Dec@de42

New Pleskian
Hello everyone,
I am currently trying to understand 2 things in Plesk, or web hosting in general:
Opcache in combination with
PHP-FPM and PHP-FPM Dedicated

(I know there are handlers for PHP-FPM Apache and nginx, but this is not relevant for my question, I guess)

I already found some threads about those topics here at the Plesk forum, like this one and this linked guide, but they are confusing me even more.

So, here is what I found out so far (or what, I believe, is correct. Please correct me if I'm wrong)
  1. PHP-FPM and Dedicated use the same technology, and FPM is currently recommended because it is a more advanced Fast-CGI handler (here)
  2. PHP-FPM Dedicated is more stable & faster because it spawns its process, but also needs slightly more resource than non-dedicated FPM
  3. Opcache values specified in the "Additional configuration directives" for Plans/Subscriptions using PHP-FPM dedicated should work because they are using their own PHP-Handler and therefore have a dedicated opcache memory:
1638819966585.png

If my assumptions above are correct, then my questions are:
  • How do I specify the opcache memory size for the non-dedicated PHP-FPM handlers? Is this php.ini or this 10-opcache file the correct one?
  • Are the non-dedicated ones sharing/using the same opcache memory pool?
    • If yes: Is there any way to make sure every non-dedicated PHP-FPM subscription is getting its chunk of memory, i.e. by specifying a memory limit in the Additional configuration directives?

Thanks in advance for your help!
 
Seems your topic got missed.
If my assumptions above are correct, then my questions are:
  • How do I specify the opcache memory size for the non-dedicated PHP-FPM handlers? Is this php.ini or this 10-opcache file the correct one?
In the php.ini of the corresponding PHP version you can adjust the opcache.memory_consumption value.

  • Are the non-dedicated ones sharing/using the same opcache memory pool?
    • If yes: Is there any way to make sure every non-dedicated PHP-FPM subscription is getting its chunk of memory, i.e. by specifying a memory limit in the Additional configuration directives?
Yes all non-dedicated PHP versions share the opcache memory pool. Thats why the opcache_get_status PHP function is disabled by default. Otherwise different users/customers can view each others opcache objects. There is however no way to distribute opcache memory between users.
 
You can tune it in the corresponding version of 10-opcache.ini ( globally for the sites using that version of PHP )

In those files yon can find the corresponding settings ( most of them commented out )
 
Back
Top