MHMDhub / enterprise-log-search-and-archive

Automatically exported from code.google.com/p/enterprise-log-search-and-archive
0 stars 0 forks source link

Web node frequently displays 0 node 0 logs indexed 0 log archived #114

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Fresh ubuntu 12.04.2 and ELSA node and web rev 741 installed on same server

No .conf file are modified, so it should be easy to reproduce issue

Original issue reported on code.google.com by jacobrav...@gmail.com on 27 Mar 2013 at 6:33

GoogleCodeExporter commented 8 years ago
I've been seeing this a bit myself as well.  Can you try setting the Apache 
config in /etc/apache2/apache2.conf under the "mpm_prefork_module" setting for 
"MaxRequestsPerChild" to 1 instead of 2?  You will need to restart Apache after 
that.  Does this seem to happen after periods where you haven't issued queries, 
or is it completely random?

Original comment by mchol...@gmail.com on 28 Mar 2013 at 6:20

GoogleCodeExporter commented 8 years ago
Its set to 0 already, not 2

<IfModule mpm_prefork_module>
    StartServers          5
    MinSpareServers       5
    MaxSpareServers      10
    MaxClients          150
    MaxRequestsPerChild   0

Original comment by jacobrav...@gmail.com on 28 Mar 2013 at 8:42

GoogleCodeExporter commented 8 years ago
The install.sh script should have set that to 2, which usually does the trick, 
though I've been seeing the issue every here and there suggesting it might need 
to go all the way down to 1.  "0" means unlimited, so that's not what we want.  
Can you set it to 1, restart Apache, and see how it goes for a few days?  Was 
this a fresh install of ELSA?  I'm confused as to why the installer didn't 
change this for you.

Original comment by mchol...@gmail.com on 28 Mar 2013 at 2:19

GoogleCodeExporter commented 8 years ago
Function set_apache_tuning contains the command to change the 
MaxRequestsPerChild directive.

perl -le 'use Apache::Admin::Config; my $ap = new 
Apache::Admin::Config("$ARGV[0]"); my @ar = $ap->select(-name => "IfModule", 
-value => "prefork.c"); use Data::Dumper; 
$ar[0]->directive("MaxRequestsPerChild")->set_value(2); $ap->save();' $FILE

This does not work on Ubuntu 12.04 and results in:
"Can't call method "directive" on an undefined value at -e line 1."

Changing [-value => "prefork.c"] to [-value => "mpm_prefork_module"] fixed the 
issue for me.

Original comment by pkt...@gmail.com on 29 Mar 2013 at 3:55

GoogleCodeExporter commented 8 years ago
Fixed in 752.

Original comment by mchol...@gmail.com on 29 Mar 2013 at 2:22