Here my config
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 INFO: APC Version 3.1.3p1 PHP Version 5.3.3 APC Host .._._ (mysite.com) (127.0.0.1) Server Software Apache/2.2.15 (CentOS) Shared Memory 1 Segment(s) with 30.0 MBytes (mmap memory, pthread mutex locking)
Runtime Settings apc.shm_size 128M
[[email protected] ~]# sysctl -p
net.ipv4.ip_forward = 0
net.ipv4.tcp_syncookies = 1
kernel.shmmax = 134217728
What i must do to increase APC memory?
apc.shm_segments
, not the segment size. Some operating systems have low limit on shared memory segment, your seems to have it set at 32 megs. – Grubmanapc.shm_size = 128M apc.shm_segments = 2
,apc.shm_size = 32M apc.shm_segments = 4
, and other... APC still use only 32M – Teplitz