Download & Extend

Performance logging APC memory size issue

Project:Devel
Version:6.x-1.14
Component:performance
Category:support request
Priority:normal
Assigned:the_phi
Status:closed (fixed)
Issue tags:APC, apc instructions, APC memory, cache, caching, memory size, operating system, PECL, Performance, PHP, PHP extension, php.ini, server, sudo, ubuntu

Issue Summary

Ciao, I'm installed devel module on my live site but an error occurs in Status report regarding APC memory size issue: "APC has been configured for , which is less than the recommended 48 MB of memory. If you encounter errors when viewing the summary report, then try to increase that limit for APC.".
Anybody knows how can I adjust as recommended, the APC memory setting?
Thanks in advance.

Jimmy

Comments

#1

Version:6.x-1.4» 6.x-1.14

#2

Site configuration - perfomance loggin

#3

In my case, I have on the Status Report page

Performance logging APC: Disabled
Performance logging on live web sites works best if APC is enabled.
Performance logging APC memory size
APC has been configured for , which is less than the recommended 48 MB of memory. If you encounter errors when viewing the summary report, then try to increase that limit for APC.

If I go to admin/settings/performance_logging:
I have this message:

APC is not enabled. It is not safe to enable summary logging to the database on live sites.

Where does one enable APC?

If it is at "Summary logging (APC): " herein my case, the pulldown menu is disabled. I cannot disable it even if i wanted.

So where/how does one enable APC or increase the recommended memory?

Regards

#4

APC is a PHP PECL extension. In order to make Drupal work with APC you need to install this specific PECL (= PHP Extension and Application Repository) extension on your server first, see http://us.php.net/apc. On my Ubuntu-Debian-Linux I could achieve this goal via bash/shell-command "sudo pecl install apc". Easy!

After doing so, on "admin/settings/performance_logging" there will be the message "APC is enabled [...]".

Increasing the APC memory has to be done on the server: Edit the/your "php.ini" (i.e. on Linux-Debian-Ubuntu in "/etc/php5/apache2" and "etc/php5/cli") and ADD

  • extension=apc.so [EDIT: updated/added this line 2010-08-26]
  • apc.shm_size = 64

It is recommended to add, in a later step, the following line to the/your "php.ini" as well (upload progress):

  • apc.rfc1867 = 1

Or, just get the PECL extension "uploadprogress" via bash/shell-command "sudo pecl install uploadprogress".

Obviously one needs to restart Apache (the server) after installing PECL extensions and modifying the php.ini-file: "sudo /etc/init.d/apache2 restart".

Philipp

#5

I had the same issue and followed comment #4 and when revisiting the performance logging page it still says APC is not enabled. I installed and configured pecl apc and upload progress (also memcache) after I installed and enabled the devel mod - I did not know if this would be the issue or if so , how to resolve it. Any suggestions?

using devel 6.x-1.18

thanks,
Jen

#6

My host is saying that they are not going to install APC (PHP PECL extension) in shared rental server environment and unable to help in this matter.

The following message showing in status after installing module "Devel".

What is the solution to solve these problem?
1. Performance logging APC Disabled
Performance logging on live web sites works best if APC is enabled.
2. Performance logging APC memory size
APC has been configured for , which is less than the recommended 48 MB of memory. If you
encounter errors when viewing the summary report, then try to increase that limit for APC.

I can not solve my problem without installling PHP PECL extension. I am new to web world. Please help me.
How site perfomance (production environment) is affected by above problem.
Is it a common problem with a shared server hosting?
Is there any good hosting in Japan for Drupal?

#7

@g76: Every operating system is different -- on mine, the instructions above [in my comment #4] worked absolutely fine. Can you tell me more about your OS?

#8

@nihonsei: APC is [usually] not suitable for shared hosting! You or a server administrator need to have full access to the server operating system in order to install/enable APC!

#9

Assigned to:Anonymous» the_phi
Status:active» closed (fixed)
Issue tags:+apc instructions, +APC memory, +memory size, +php.ini

I am closing this issue now. This is not a devel issue, this is a PECL and server issue.

#10

PHILIPP-SCHAFFN...
Thanks for your kind reply.

#11

@ #2

Yes.... AND??

nobody click here