这是我的配置
extension = apc.so apc.enabled = 1 apc.shm_size = 128M apc.shm_segments = 1 apc.gc_ttl = 7200 apc.ttl = 0 apc.num_files_hint = 1024 apc.file_update_protection = 2 apc.max_file_size = 5M apc.stat_ctime = 1 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.filter="-/usr/share/PHPMyAdmin/.*"
APC信息:
APC版本3.1.3p1
PHP版本5.3.3
APC主机.._._(mysite.com)(127.0.0.1)
服务器软件Apache / 2.2.15(CentOS)
共享内存1段30.0 MBytes(mmap内存,pthread互斥锁定)
运行时设置
apc.shm_size 128M
[root@mysite.com ~]# sysctl -p net.ipv4.ip_forward = 0 net.ipv4.tcp_syncookies = 1 kernel.shmmax = 134217728
我必须做些什么来增加APC记忆?
另请参阅手册:
http://php.net/manual/en/apc.configuration.php,注意尺寸和最大尺寸之间的差异.