APC Does Not Respect PHP Display Error Off

I received tons of alerts on my site. as

PHP: Require_once(): Unable To Allocate Memory For Pool

I know that this is caused by APC , and after I increased shm_sizeand decreased gc_ttl, it disappeared. but my request, how did he display this warning on a web page? I disabled display PHP errorsand just logged it and it does not display any PHP errors on the website.

To test this, I deliberately created a script that will display a PHP warning and notifications, and yes, to my satisfaction, they just logged, NOT It appears as an APC error.

So how to disable APC Warnings on the Production website? (if this happens again)

+4
source share
1

, apc.ini not php.ini conf.d. Checkout php.ini, apc.ini phpinfo().

, ( - "XXXXX" ):

apc.mmap_file_mask =/TMP/apc.XXXXXX

:

apc.shm_size = 96

:

apc.ttl = 3600

:

apc.gc_ttl = 3600

apache/nginx.

apc.ttl apc.shm_size. /usr/share/php-pecl-apc/apc.php www apc.php.

apc.php apc.php:

( 'admin_password', ' --');

. Hits File cache information, cheeck .

ttl , .

0

All Articles