note 95980 modified in apc.configuration by danbrown
| From: | danbrown@php.net | Date: | Tue, 02 Feb 2010 16:01:42 +0000 |
| Subject: | note 95980 modified in apc.configuration by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165602@lists.php.net to get a copy of this message | ||
Want to avoid segmentation with apc.shm_segments?If your linux server limits the shared memory block
size and you're forced to use apc.shm_segments instead, change the setting by using (here is
512M but change it as you like):
# sysctl -w kernel.shmmax=536870912
(but if you want the change to be permanent after a restart you would have to add the following line
in /etc/sysctl.conf
kernel.shmmax=536870912)
and updating apc.ini
apc.shm_segments="1"
apc.shm_size="512"
apc.stat is an extremely important setting for a production server, especially if many files are
accessed on every request, which is quite normal on complicated web applications.
Always aspire to use:
apc.stat="0"
so that APC does not try to check that each and every file exists on every request you make. It also
means you can update files on your server without crashing incoming requests on that time fragment.
Whenever you wish to force APC to re-read all the files, simply clear the cache or restart your
server.
--was--
Want to avoid segmentation with apc.shm_segments?If your linux server limits the shared memory block
size and you're forced to use apc.shm_segments instead, change the setting by using (here is
512M but change it as you like):
# sysctl -w kernel.shmmax=536870912
and updating apc.ini
apc.shm_segments="1"
apc.shm_size="512"
http://php.net/manual/en/apc.configuration.php