Active
Project:
Cache Router
Version:
6.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Oct 2010 at 11:44 UTC
Updated:
29 Oct 2010 at 04:07 UTC
Good day, gentlemen.
I use authcache + cacherouter with xcache engine enabled. Multisiting is enabled too, so both mysite/settings.php and default/settings.php have this snippet:
<?php
$conf['cache_inc'] = './sites/all/modules/authcache/authcache.inc';
$conf['cache_inc_via_authcache'] = './sites/all/modules/cacherouter/cacherouter.inc';
$conf['cacherouter'] = array(
'default' => array(
'engine' => 'xcache',
'servers' => array(),
'shared' => TRUE,
'prefix' => '',
//'path' => 'sites/default/files/filecache',
'static' => FALSE,
'fast_cache' => FALSE,
),
);?>
The problem is:
Authcache and cacherouter seem to do their work well, but I recieve in my error_log every 10-30 minutes this message:
(mod_fastcgi.c.2701) FastCGI-stderr: PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/www/sites/all/modules/cacherouter/engines/xcache.php on line 100
memory_limit in php.ini is set to 512M. I rose it twice from 64M to 512M with the only effect: error repeats rarely, but still it occurs. It seems like on line 100 there something causing a memory leak ;)
--------------------------------------
XCache configuration:
| Directive | Local Value | Master Value |
|---|---|---|
| xcache.admin.enable_auth | On | On |
| xcache.cacher | On | On |
| xcache.coredump_directory | no value | no value |
| xcache.count | 4 | 4 |
| xcache.gc_interval | 300 | 300 |
| xcache.mmap_path | /dev/zero | /dev/zero |
| xcache.readonly_protection | no value | no value |
| xcache.shm_scheme | mmap | mmap |
| xcache.size | 128M | 128M |
| xcache.slots | 32K | 32K |
| xcache.stat | On | On |
| xcache.test | no value | no value |
| xcache.ttl | 36000 | 36000 |
| xcache.var_count | 4 | 4 |
| xcache.var_gc_interval | 300 | 300 |
| xcache.var_maxttl | 3600 | 3600 |
| xcache.var_size | 256M | 256M |
| xcache.var_slots | 64K | 64K |
| xcache.var_ttl | 600 | 600 |
Lighttpd and php-cgi
# php-cgi -v
PHP 5.2.13 (cgi-fcgi) (built: Mar 21 2010 16:04:16)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
with XCache v1.3.0, Copyright (c) 2005-2009, by mOo
# lighttpd -v
lighttpd/1.4.28 - a light and fast webserver
Build-Date: Oct 24 2010 15:58:28
Server configuration:
Slackware 13.1 x86_64
4 Core (8 as of HT) Xeon 5620
12 Gb DDR3all server software is 64 bit.
Comments
Comment #1
andypostLooks like memory leakage, also xcache have a weak testing so not sure what's wrong