XFileSharing Pro - Httpd Server keep crashing, or goes unresponsive

Message
Author
nkchokshi
Posts: 39
Joined: Jun 07, 2013 6:54 am

Httpd Server keep crashing, or goes unresponsive

#1 Postby nkchokshi » Jul 23, 2013 6:35 am

Hi, i admin i am running apache server after i get traffic of 60-80 users constant for about 20 mins, the apache keep crashing. can you please give me the proper value for stable apache, to handle traffic.

I am running DirectAdmin.
my Ram is 12gb,
hard disk is 4tb.

This is few lines of log.

Code: Select all

[Tue Jul 23 09:55:46 2013] [notice] caught SIGTERM, shutting down
[Tue Jul 23 09:55:49 2013] [notice] SSL FIPS mode disabled
[Tue Jul 23 09:55:49 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 23 09:55:49 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jul 23 09:55:49 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jul 23 09:55:50 2013] [notice] SSL FIPS mode disabled
[Tue Jul 23 09:55:50 2013] [warn] RSA server certificate CommonName (CN) `localhost' does NOT match server name!?
[Tue Jul 23 09:55:50 2013] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Tue Jul 23 09:55:50 2013] [notice] Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.0-fips DAV/2 PHP/5.2.17 configured -- resuming normal operations
[Tue Jul 23 09:56:39 2013] [error] [client 64.128.161.133] File does not exist: /var/www/html/manager
[Tue Jul 23 09:56:39 2013] [error] [client 64.128.161.133] File does not exist: /var/www/html/404.shtml
[Tue Jul 23 09:57:54 2013] [error] [client 66.249.75.184] script '/var/www/html/watch.php' not found or unable to stat
[Tue Jul 23 09:57:54 2013] [error] [client 66.249.75.184] File does not exist: /var/www/html/404.shtml
[Tue Jul 23 09:58:31 2013] [notice] caught SIGTERM, shutting down
These are my current values for apache

Code: Select all

Timeout 3
KeepAlive off
KeepAliveTimeout 1

<IfModule mpm_prefork_module>
    StartServers           1
    MinSpareServers     1
    MaxSpareServers    5
    ServerLimit         256
    MaxClients          256
    MaxRequestsPerChild 0
</IfModule>

Internet Consumer
Posts: 148
Joined: May 28, 2013 1:51 am

#2 Postby Internet Consumer » Jul 23, 2013 7:31 am

Hmm that is very interesting.

Question did you install everything your self of did your provider do some of it for you?

admin
Site Admin
Posts: 1839
Joined: Mar 22, 2006 12:32 pm

#3 Postby admin » Jul 23, 2013 7:49 am

It's not actually crashing. As per your log:
[Tue Jul 23 09:58:31 2013] [notice] caught SIGTERM, shutting down
That means that something is asking apache to die. maybe some control panel.

nkchokshi
Posts: 39
Joined: Jun 07, 2013 6:54 am

#4 Postby nkchokshi » Jul 23, 2013 8:08 am

Hi, i now changed from mpm_prefork_module to worker module

so now it keep repeating

Code: Select all

server reached MaxClients setting, consider raising the MaxClients setting
Please admin, can you suggest any number for stable it?

ufkabakan
Posts: 332
Joined: Apr 13, 2011 9:37 pm

#5 Postby ufkabakan » Jul 23, 2013 2:08 pm

You need a System Admin, not Sibsoft Admin.
Try to buy a service from a real Linux System Admin.

If you want realy help from this forum users, give a bit more details.
Example Print and paste this information :

Code: Select all

cat /proc/cpuinfo
uname -a
sysctl -a
ulimit -a
cat /etc/redhat-release
cat /var/log/httpd/error_log | grep -i error 
After this prints take a SS "atop" command before your server crash.

vipony12
Posts: 14
Joined: Jan 18, 2013 8:43 am

#6 Postby vipony12 » Jul 23, 2013 7:08 pm

Try Nginx, Lighttpd, or Reversse proxy
And: Main server install on a dedicated, File server install on other dedicated

Internet Consumer
Posts: 148
Joined: May 28, 2013 1:51 am

#7 Postby Internet Consumer » Jul 23, 2013 10:42 pm

vipony12 wrote:Try Nginx, Lighttpd, or Reversse proxy
And: Main server install on a dedicated, File server install on other dedicated
Agreed, But you should also check with tech support on your hosting provider.