I recently got APC running on my Gentoo webserver and I continue to have problems with it locking up Apache. Initially I had it set to operate on all domains on the box. With about 20 domains I realized this wasn't optimal, so I switched it to operate on just one domain, then just one subdomain. I've played around with the SHM size from 32MB to where it is now, 256MB. No luck. After some indeterminate period of time, Apache will stop responding to requests in a timely manner. It just times out.
apc.ini (both Apache and CLI)
Code:
extension=apc.so
apc.enabled="1"
apc.shm_segments="1"
apc.shm_size="256M"
apc.num_files_hint="1024"
apc.ttl="7200"
apc.user_ttl="7200"
apc.gc_ttl="3600"
apc.cache_by_default="0"
;apc.filters=""
;apc.mmap_file_mask="/tmp/apcphp5.XXXXXX"
apc.slam_defense="0"
apc.file_update_protection="2"
apc.enable_cli="1"
apc.max_file_size="1M"
apc.stat="1"
apc.write_lock="1"
apc.report_autofilter="0"
apc.include_once_override="0"
apc.rfc1867="0"
apc.rfc1867_prefix="upload_"
apc.rfc1867_name="APC_UPLOAD_PROGRESS"
apc.rfc1867_freq="0"
apc.localcache="0"
apc.localcache.size="512"
apc.coredump_unmap="0"
.htaccess on the subdomain:
Code:
php_flag apc.cache_by_default On
Any ideas? Thanks.