By jeff00seattle on
Hi
I am getting the following error message when I enable Performance Logging module:
Performance logging APC memory size 32
APC has been configured for 32, which is less than the recommended 48 MB of memory.
How does one set the APC memory size?
Thanks
Comments
APC docs
Read the APC documentation and set the proper values in php.ini.
I have this problem too, but
I have this problem too, but php.ini actually had 64MB as the limit. There isn't a file on my system with a name like php.ini and "30" as the max memory size. I suspect somewhere it's being confusing with max_execution_time, which is set to "30" (no MB, same as the error report)
Edit:
Actually, found the solution here:
http://forum.webedition.de/phpBB/viewtopic.php?f=2&t=6972
Apparently you have to add this line:
apc.shm_size="64"
Wrong file
In most PHP installations there should be a php.d directory containing the file apc.ini. That's where you should make the change. If you simply add the directive to php.ini, and the apc.ini exists, you may get odd results.
how to fix for Ubuntu
on Ubuntu, you should see a file called /etc/php5/conf.d/apc.in
# become root
sudo su -
# append to the config file
echo 'apc.shm_size="64"' >> /etc/php5/conf.d/apc.ini
# reload apache's configuration files
apache2ctl reload
Reload your status page to check it.
http://example.com/drupal/admin/reports/status
apc memory size - fix for dreamhost
Assuming you've already installed PECL uploadprogress.so using these directions,
http://drupal.org/node/456686#comment-2369292
but with
~/usr/localinstead of~/gnu,Assuming these directories and files already exist:
and that php-wrapper.cgi and php.ini are already set as shown here:
http://wiki.dreamhost.com/PHP.ini
Assuming .htaccess at yourdomain.com has the following lines:
Begin:(or whatever is currently stable at http://pecl.php.net/package/APC)
scroll down to:
;extension_dir = "./"add extension="apc.so" to the bottom of the extension list thus:
Save the file. Refresh your browser for the drupal status report and the apc memory message should be gone.
This helped me get everything
This helped me get everything squared away:
Scroll down to section 3:
http://www.howtoforge.com/apc-php5-apache2-fedora8
It tells you that you have to create your own apc.ini file at /etc/php.d/apc.ini and provides you with the necessary information.
If one does NOT have the conf.d directory and the apc.ini file:
simply add the recommended 64M to your php.ini file:
sudo echo 'apc.shm_size="64"' >> /etc/php5/apache2/php.ini
and reload apache.
no matter where I set the apc
no matter where I set the apc.shm_size in php.ini I run apc.php and it always returns apc.shm_size=32M. I tried with and without the M. Tried creating an apc.ini and no luck.
Seems like something's overriding it. any ideas where else this setting could be configured?
sudo grep -rnw / -e "apc.shm_size" > ~/apcsize.txt just returns results from within the drupal profile php files.
use opcache instead :-)
use opcache instead :-)