- Server operating system version
- CentOS 7.9
- Plesk version and microupdate number
- Plesk 18.0.69
Hello Plesk community,
I’m running a CakePHP 4.6 application on CentOS 7.9 with Plesk 18. My PHP version is 8.2.28, and I have PHP-FPM enabled for the domain. In Plesk’s PHP Settings for this domain, I added:
I’m running a CakePHP 4.6 application on CentOS 7.9 with Plesk 18. My PHP version is 8.2.28, and I have PHP-FPM enabled for the domain. In Plesk’s PHP Settings for this domain, I added:
After applying and letting Plesk restart FPM, I verified via a simple phpinfo() call that apc.shm_size is indeed set to 512M in the FPM environment. However, when I call apcu_sma_info() from a CakePHP controller (i.e. executed via the browser, not CLI), I see:apc.enabled = 1
apc.shm_size = 512M
Despite ini_get('apc.shm_size') outputting “512M,” the actual segment size in apcu_sma_info() is only ~33,554,312 bytes, indicating FPM has only reserved ~32 MB of APCu shared memory. I need to understand:Array
(
[num_seg] => 1
[seg_size] => 33554312 // ~32 MB in bytes
[avail_mem] => 31328296
[block_lists] => Array(…)
)
- Where exactly is APCu’s ini for the active PHP-FPM pool?
- Why does phpinfo() report 512M but apcu_sma_info() still show only ~32M?
- How can I force the FPM workers to truly initialize APCu with 512M SHM?
- SAPI: Confirmed PHP_SAPI is fpm-fcgi.
- Loaded php.ini: /opt/plesk/php/8.2/etc/php.ini
- Scanned ini files: includes /opt/plesk/php/8.2/etc/php.d/apcu.ini
- ini_get('apc.shm_size'): 512M
- apcu_sma_info()['seg_size']: 33554312