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

jimmypreserve’s picture

Version: 6.x-1.4 » 6.x-1.14
anrn’s picture

Site configuration - perfomance loggin

lionheart8’s picture

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

Blooniverse’s picture

Assigned: Blooniverse » Unassigned
Status: Closed (fixed) » Active
Issue tags: -Performance, -PHP, -caching, -APC, -server, -php.ini, -PECL, -cache, -ubuntu, -operating system, -sudo, -PHP extension, -apc instructions, -memory size, -APC memory

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

g76’s picture

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

nihonsei’s picture

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?

Blooniverse’s picture

Issue tags: +APC, +operating system

@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?

Blooniverse’s picture

Issue tags: +Performance, +PHP, +caching, +server, +PECL, +cache, +ubuntu, +sudo, +PHP extension

@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!

Blooniverse’s picture

Assigned: Unassigned » Blooniverse
Status: Active » Closed (fixed)
Issue tags: +php.ini, +apc instructions, +memory size, +APC memory

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

nihonsei’s picture

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

suffering drupal’s picture

Assigned: Unassigned » Blooniverse
Status: Active » Closed (fixed)
Issue tags: +Performance, +PHP, +caching, +APC, +server, +php.ini, +PECL, +cache, +ubuntu, +operating system, +sudo, +PHP extension, +apc instructions, +memory size, +APC memory

@ #2

Yes.... AND??