Vps – APC minimal shm size

alternative-php-cachephp5virtuozzovps

What is the minimal amount of shm Space APC needs to operate properly? I'm currently running a WordPress blog on a VPS based on virtuozzo and I can't set kernel shm to anything above 32 mb. Is there any way of telling APC to use "normal" memory instead of shared one (I've got plenty of ram…)

My current apc.ini looks like this, yet apc tells met that it's using just 30 MB (1 Segment(s) with 30.0 MBytes (mmap memory, pthread mutex locking)):

extension = apc.so
apc.enabled = 1
apc.shm_segments = 15
apc.num_files_hint = 2700
apc.user_entries_hint = 2700
apc.ttl = 7200
apc.user_ttl = 3600
apc.gc_ttl = 600
apc.cache_by_default = 1
apc.max_file_size = 2M
apc.stat = 1

Best Answer

Use the files apc.php from the APC package to check how APC use memory. Increase it until APC have 20% free spare memory.

A single Wordpress with some plugins can require more than 40M.