Unable to allocate memory for pool. in theme_render_template 解決方式

http://drupal.org/node/952358

若出現以下情形:

 

 

 

解決辦法如上述參考網址內容

或是直接以下述方式處理:(我試過之後目前ok)

vi /etc/php.d/apc.ini

;修改下面由64M to 256M

apc.shm_size=256M

just wanted to mention for some who may have the same issue i did that the setting was not in php.ini. i found the setting in /etc/php.d/apc.ini

for my dev box with this error, i changed to “apc.shm_size=256M” from 64M and errors disappeared. also did a #service httpd restart to be safe.

hth

——-若真的還不行,下面的設定我還沒試過

Posted by esbenmr on June 2, 2012 at 7:33pm

**** SOLVED *****
2nd of June 2012

Alright, for those of you having this problem here is what I did. I am on OSX 10.7.4 (Lion)
First off, if you DON’T have the apc settings in your /private/etc/php.ini by default, do this (or else just edit your values):

1. Install PHP Pear: http://i.justrealized.com/2011/setup-php-pear-mac-os-lion/
2. Install PHP APC: http://i.justrealized.com/2010/install-php-apc-mac-os/

3. Add these lines to the end of your php.ini file (between [xdebug] and ; Local Variables – might not have an influence, but that worked for me).

Applications -> Terminal -> type in (without quotation marks): “cd /private/etc” hit enter/return -> “sudo nano php.ini” -> scroll all the way to the bottom by holding ctrl+v down for a couple of seconds. -> Add these lines to the end of your php.ini file (between [xdebug] and ; Local Variables):

 

apc.enabled=1

apc.shm_segments=1

apc.shm_size=128M

apc.cache_by_default=1

apc.stat=1

apc.rfc1867=1

apc.stat=0

So the trick for me was to change 32M to 128M and the apc.stat=7200 to =0.

*************

 

 

Share and Enjoy:
  • Print
  • Digg
  • StumbleUpon
  • del.icio.us
  • Facebook
  • Yahoo! Buzz
  • Twitter
  • Google Bookmarks
  • MySpace
  • Plurk
  • RSS
  • Google Buzz
  • Live
本篇發表於 Drupal。將永久鏈結加入書籤。

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *