LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   APC user cache with fcgi processes (https://www.linuxquestions.org/questions/linux-server-73/apc-user-cache-with-fcgi-processes-571105/)

walidaly 07-21-2007 01:43 AM

APC user cache with fcgi processes
 
I'm using lighttpd with mod_fastcgi to run PHP 5.2 and APC as an opcacher, however I'd like to use the user cache as well but I see that even though 'apc.shm_segments = 1' APC is creating more segments so that changing entries on APC cache would result having different values for every process I think, I couldn't discover that on my development server but on a loaded server it's more likely to happen. Moreover, changing 'apc.mmap_file_mask = /tmp/apc.XXXXXX' didn't help much, but I need to mention I didn't compile PHP using --enable-mmap

Lighttpd config
Code:

fastcgi.server = ( ".php" => ((
                                                        "socket" => "/tmp/php.socket-1",
                                                        "bin-path" => var.phppath,
                                                        "idle-timeout" => 5,
                                                        "min-procs" => 1,
                                                        "max-procs" => 15,
                                                        ))
                                  )

APC php.ini config
Code:

extension_dir = /usr/local/lib/
extension = apc.so
apc.shm_segments = 1
apc.shm_size = 1000
apc.ttl = 7200
apc.user_ttl = 7200
apc.num_files_hint = 3000
apc.max_file_size = 2M
apc.stat = 0
apc.include_once_override = 1
apc.mmap_file_mask = /tmp/apc.XXXXXX



All times are GMT -5. The time now is 02:35 PM.