I have a virtual private server that only allows me to use 128MB of RAM. I recently installed APC for PHP and it consumes more than 128MB. My provider wants me to upgrade my account if I don't get that number down. Is there a config option that I can use to set a maximum on APC?
+2
A:
It seems you need to make changes to apc.shm_segments
and apc.shm_size to change overall memory given to APC.
aularon
2010-09-08 16:30:15
I believe setting `shm_segments` is only advised if you've already maxed out `shm_size`.
Frank Farmer
2010-09-08 17:02:47
I have shm_size=10 and shm_segments=1. How do these numbers influence MB of use? I am using php5-cgi w/ lighttpd.
User1
2010-09-08 17:30:44
from the same page, they say `shm_size` is in MB, and the total usage will be `apc.shm_segments`* `apc.shm_size`, as @Rudi pointed out above.
aularon
2010-09-08 17:41:04