Just installed APC on a server that hosts just a few sites. I also enabled the Cache Router module on one site, and each site has Boost running. Originally I installed APC 3.1.6 but apparently there is an issue with that version and it doesn't load Drupal modules into Cache. So everything looked good, but I upgraded to 3.1.7 and now there are many more files being loaded into cache (good) but I'm filling up the cache and getting fragmentation as well.
I've attached a printout of apc.php but here are my current settings.
apc.cache_by_default 1
apc.canonicalize 1
apc.coredump_unmap 0
apc.enable_cli 0
apc.enabled 1
apc.file_md5 0
apc.file_update_protection 2
apc.filters
apc.gc_ttl 1200
apc.include_once_override 0
apc.lazy_classes 0
apc.lazy_functions 0
apc.max_file_size 1M
apc.mmap_file_mask /tmp/apc.nNLTQG
apc.num_files_hint 1024
apc.preload_path
apc.report_autofilter 0
apc.rfc1867 0
apc.rfc1867_freq 0
apc.rfc1867_name APC_UPLOAD_PROGRESS
apc.rfc1867_prefix upload_
apc.rfc1867_ttl 3600
apc.serializer default
apc.shm_segments 1
apc.shm_size 128M
apc.slam_defense 1
apc.stat 1
apc.stat_ctime 0
apc.ttl 86400
apc.use_request_time 1
apc.user_entries_hint 4096
apc.user_ttl 86400
apc.write_lock 1
What should I be doing to fix the issue? Just keep bumping up the shm_size? I feel okay going up to about 256M but that would be the upper limit on this server right now. Do I need to be increasing kernel.shmmax in addition to apc.shm_size? I believe that's still at 32M. How about apc.ttl and apc.user_ttl? I've seen some posts about changing that to 0 but I'm not sure what affect that would have on my sites.
Any help would be appreciated. I'm going to go ahead and boost shm_size up to 160M now to see if that helps with anything.
Thanks
Attachment | Size |
---|---|
APC.pdf | 35.4 KB |