APC cache size settings
I wanted to try 15M instead of 30. I added a line 'apc.shm_size=15M' to my apc.ini.
I restarted nginx (pretty sure I didn't need to do that), and restarted php-cgi.
If I run php_info.php or apc.php, they show that it picked up my new size. That is, I can see the 15M entry in the settings. But the cache size is still 30M: apc.php shows that, as do the munin plugins.
Since it's a scratch linode, I also tried rebooting it, just to see if there was some "ordering of service restarts" problem. The problem remains.
Am I doing something wrong, or is there a hard minimum (30) for that value?
4 Replies
Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.
I needed to drop the 'M' from the config.
apc.shm_size=15
works.
Sigh. Carry on!
@ericholtman:
God damnit.
Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.
I needed to drop the 'M' from the config.
apc.shm_size=15
works.
Sigh. Carry on!
You probably have my.cnf on the brain
@glg:
You probably have my.cnf on the brain
;)
As a matter of fact, mysql is next on my list of things to "tune" on this linode.
So stay tuned for another question that I'll self-answer immediately after posting.
@ericholtman:
God damnit.
Twice in one weekend I fiddle for a couple of hours, google to no avail, then immediately after asking for help, find the answer.
I needed to drop the 'M' from the config.
apc.shm_size=15
works.
Sigh. Carry on!
This depends on the version of APC. I have 3.1.9 on one Linode and without the 'M' it throws a warning about the missing M. On my other boxes, APC 3.1.3 behaves as you describe.
So you may want to hold on to that M for after you upgrade