Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Server going down from time to time |
|
Author |
|
arturocivit
Joined: 06 Feb 2013 Posts: 4 Location: Miami
|
Posted: Wed 06 Feb '13 23:13 Post subject: Server going down from time to time |
|
|
Hi there, newbie here, first post!
The server is going down from time to time, every 12 days or so the site hosted there is no longer accesible, everything starts with the site slowing don and down and then is not longer reachable, what we do is to request a power cycle, and with this we start all over again till next power cycle, so on so on, of course, this cannot be handled like that anymore so we need to find a solution, here are my server details and more info on this:
- MySQL - 5.1.41-3ubuntu12.10
- Apache - 2.2.14-5ubuntu8.4
- PHP - 5.3.2-1ubuntu4.9
- operating system: Ubuntu Server 10.04 LTS
After some time emailing the support guys to barely check about what's going on, we received an email with a few things:
1.- found a few errors that likely would cause issues with Apache. The first error is:
[Mon Feb 04 05:03:10 2013] [error] mod_fcgid: fcgid process manager died, restarting the server and the next error is:
[Mon Feb 04 14:32:34 2013] [error] server reached MaxClients setting, consider raising the MaxClients setting ... Both these errors seem to indicate that you have a process that is running out of control on your server. We were unable to determine what script on your site is running caused your connections to be maxed out however it does appear that before these errors were generated there was a WordPress plugin referenced in your access logs...
2.- Additionally during our review we did find that your error log for mercadodedinerousa.com is 45 GB's which is excessively large and can cause problems when Apache is trying to write a such a large file.
3.- The majority of the errors being logged are:
[Wed Feb 06 12:12:31 2013] [error] [client 200.76.90.5] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/mercadodedinerousa.com/httpdocs/index.pl, referer: http://www.mercadodedinerousa.com/autos/14741salon-internacional-del-automovil-2013-espera-el-lanzamiento-de-50-nuevos-vehiculos/
So, what you guys think it might be causing this problem? maybe is a good idea to take off all the WP plugins and check to see what happens? of just delete that post referred on point number 3?
Any help would be really appreciated, thanks a lot in advance!
Arturo |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 08 Feb '13 0:58 Post subject: |
|
|
Which MPM do you use and how the setting of the MPM? |
|
Back to top |
|
arturocivit
Joined: 06 Feb 2013 Posts: 4 Location: Miami
|
Posted: Fri 08 Feb '13 3:25 Post subject: |
|
|
James Blond wrote: | Which MPM do you use and how the setting of the MPM? |
Hi James, good evening, thanks for the reply, I'm kinda' new to this, what is MPM?
Thanks |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Fri 08 Feb '13 10:37 Post subject: |
|
|
Please post the result from
/etc/init.d/apache2ctl -V
maybe it is
/etc/init.d/apachectl -V
result should be something like
Code: |
Server version: Apache/2.4.3 (Unix)
Server built: Aug 23 2012 22:05:21
Server's Module Magic Number: 20120211:6
Server loaded: APR 1.4.6, APR-UTIL 1.4.1
Compiled using: APR 1.4.6, APR-UTIL 1.4.1
Architecture: 32-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT="/opt/apache2"
-D SUEXEC_BIN="/opt/apache2/bin/suexec"
-D DEFAULT_PIDLOG="logs/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="conf/mime.types"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
|
|
|
Back to top |
|
arturocivit
Joined: 06 Feb 2013 Posts: 4 Location: Miami
|
Posted: Fri 08 Feb '13 23:59 Post subject: |
|
|
James Blond wrote: | Please post the result from
/etc/init.d/apache2ctl -V
maybe it is
/etc/init.d/apachectl -V
|
Sure, here we go:
Code: | root@ip-50-62-138-50:/etc/init.d# apache2 -V
Server version: Apache/2.2.14 (Ubuntu)
Server built: Mar 5 2012 16:41:39
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.8, APR-Util 1.3.9
Compiled using: APR 1.3.8, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf" |
|
|
Back to top |
|
arturocivit
Joined: 06 Feb 2013 Posts: 4 Location: Miami
|
Posted: Wed 13 Feb '13 17:53 Post subject: |
|
|
A extremely polite bump. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 14 Feb '13 15:20 Post subject: |
|
|
There should be something like
Code: |
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 250
MaxConnectionsPerChild 0
</IfModule>
|
That needs to be adjusted to your needs.
Also the few files before "mod_fcgid: fcgid process manager died" shall be interessting. |
|
Back to top |
|
|
|
|
|
|