XF 1.3 Allocation for memory pool?

Joshua

Active member
Just got this error message. I just moved to a CentMinMod droplet on Digital Ocean. Still ironing out the configuration settings. Any assistance is greatly appreciated!

Code:
An exception occurred: include(): Unable to allocate memory for pool. in /home/nginx/domains/domain.org/public/library/XenForo/Autoloader.php on line 119

[LIST=1]
[*]XenForo_Application::handlePhpError() in XenForo/Autoloader.php at line 119
[*]XenForo_Autoloader::autoload() in XenForo/Autoloader.php at line 119
[*]XenForo_Autoloader->autoload()
[*]spl_autoload_call() in XenForo/FrontController.php at line 375
[*]XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134
[*]XenForo_FrontController->run() in /home/nginx/domains/domain.org/public/admin.php at line 13
[/LIST]
 
I have once encountered the same problem. The problem is APC running out of memory.

If you had any php cache or maybe memcache/memcached/libmemcache, try to disable that. Then restart your nginx and PHP.

Dont forget about Zend OPcache in PHP 5.5 :)
 
So you're saying if I disable all PHP cache methods and restart nginx and php, this should stop happening? It seems to be intermittent.

And what about Zend OPcache? What if I prefer to use memcache?
 
So you're saying if I disable all PHP cache methods and restart nginx and php, this should stop happening? It seems to be intermittent.

And what about Zend OPcache? What if I prefer to use memcache?
I cant say, but after I disable all PHP cache and then restart nginx and PHP, the error is gone.

It could be the same problem (cache is full or misconfiguration), it could be something else. You can try to check your server error log for more information.

I see some people using PHP 5.5 without realize they are installing Zend OPCache too by default. So when they try to install APC... boom! :D

Zend OPCache + memcache is good alternative. :)
 
Memcache is really overkill on a small VPS - and if your site is big enough to really need it then it would probably be better severed on dedicated hardware. I am aware that there are some VPS's that allow 6-8GB RAM, but your constraints will usually be elsewhere then.
 
Going to depend on whether you are using nginx, Apache or OpenLiteSpeed.
nginx by removing the module from the /php5/fpm/conf.d, Apache probably by removing the module from the php.ini, OpenLiteSpeed by removing the APC option at compile time of PHP and adding it to the compile options when compiling php for OLS and then adding it into the php.ini.
The below enables it for 1.2.9 of OLS.
Code:
zend_extension=/usr/local/lsws/lsphp5/lib/php/extensions/no-debug-non-zts-20121212/opcache.so
 
Back
Top Bottom