xcache and wrong ipb stats - (apache configuration help needed)

Discussion in 'Site & Server Administration' started by ASTRAPI, Dec 12, 2010.

  1. #1
    Hello

    I was try to use xcache and it realy helps my server and i was add also in config.php the line:

    $INFO['use_xcache'] = '1';
    Code (markup):
    so the forum start use this cache but i have a problem on my server.

    xeon quad
    16gb ram
    4xsas disks raid 10

    Cpanel server:
    Nginx in front of Apache 2.2 + prefork
    Php as fastcgi

    prefork settings:

    StartServers 8
    MinSpareServers 10
    MaxSpareServers 10
    MaxClients 256
    MaxRequestsPerChild 20000

    When i have for example users 10 and latest user that register is user test1 when i use another browser and register another user so i can have users 11 and latest user test2 when i refresh sometimes i got the correct stats and then if i refresh again or browse the forum for a while and go back i can't see the new stats and instead i have again users 10 and latest user test1 and this happend also on topics.

    I was ask the author of xcache and he told me this:

    The current looks you have is: httpd as fcgi manager, managing many
    php-fcgi workers(childs). it not only make your stats wrong but also
    take up a lot of memory, because each php-fcgi worker allocate its own
    XCache cache memory
     
    the target result should be: _1_ php-fcgi parent, with many php-fcgi
    workers(childs)
    the key is, php as a fcgi manager should be the parent of worker childs.
    Code (markup):

    Can anyone help on this what is wrong and how can i fix it?

    Thank you
     
    ASTRAPI, Dec 12, 2010 IP