note 94529 added to apc.configuration

From: Date: Tue, 10 Nov 2009 12:27:44 +0000
Subject: note 94529 added to apc.configuration
Groups: php.notes 
Request: Send a blank email to php-notes+get-162696@lists.php.net to get a copy of this message
For anyone wondering why shm_segments is being ignored on their setup, it could be because of the following: If you've configured APC to use memory mapped files (with the --enable-mmap option), the shm_segments setting is ignored unless you specify a file mask via the mmap_file_mask setting. This is because APC won't attempt to create multiple anonymous files to map into memory without a mask (since it has no way of naming them sensibly). To set up multiple segments you have to give a file mask so they can be named separately. apc.mmap_file_mask=/tmp/apc.XXXXXX Make sure to use exactly 6 "X"s (this is the part that is changed by APC). You can place these files anywhere, they don't have to go in /tmp. With that said, I'm not sure what the performance impact of having multiple MMAP segments would be. I'm guessing it would probably be negative so you probably don't want to do this. ---- Server IP: 92.48.74.199 Probable Submitter: 89.242.14.2 ---- Manual Page -- http://www.php.net/manual/en/apc.configuration.php Edit -- https://master.php.net/note/edit/94529 Del: integrated -- https://master.php.net/note/delete/94529/integrated Del: useless -- https://master.php.net/note/delete/94529/useless Del: bad code -- https://master.php.net/note/delete/94529/bad+code Del: spam -- https://master.php.net/note/delete/94529/spam Del: non-english -- https://master.php.net/note/delete/94529/non-english Del: in docs -- https://master.php.net/note/delete/94529/in+docs Del: other reasons-- https://master.php.net/note/delete/94529 Reject -- https://master.php.net/note/reject/94529 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#162696) next »