LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-21-2007, 01:43 AM   #1
walidaly
Member
 
Registered: Mar 2007
Posts: 64

Rep: Reputation: 15
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP5 under lighttpd with fcgi walidaly Linux - Software 5 03-17-2007 10:57 PM
limit processes for each user jackripper2988 Slackware 1 03-17-2006 01:32 AM
User managed cache?? professional1983 Programming 0 06-04-2005 04:53 PM
Limiting user processes? RecoilUK Linux - Security 1 04-09-2005 01:33 PM
user processes skate Linux - Software 2 08-24-2003 05:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration