XFileSharing Pro - How to configure Apache ? 1- Page 2

Powerfull XFileSharing version

Moderator: admin

Message
Author
pony99
Posts: 55
Joined: Jul 08, 2012 3:45 pm

#16 Postby pony99 » Aug 13, 2012 4:16 pm

Hello,
Yesterday and today I got this error on errorlog from apache2 suddenly:

[warn] child process ... still did not exit, sending a SIGTERM
[warn] child process ... still did not exit, sending a SIGTERM
[warn] child process ... still did not exit, sending a SIGTERM (up to 100-200times)
.
.
.
[error] child process ... still did not exit, sending a SIGKILL
[error] child process ... still did not exit, sending a SIGKILL
[error] child process ... still did not exit, sending a SIGKILL(up to 100-200times)
.
.
.
[error] could not make child process ... exit, attempting to continue anyway
[error] could not make child process ... exit, attempting to continue anyway
[error] could not make child process ... exit, attempting to continue anyway

and my server is overloaded ram:100% swap:100% cpu 90%, i must restart to fix it


Image

what could be the issue?

Intel Core i5-2400
4x3.1+ GHz

8 GB DDR3
100mb/s bandwidth

Code: Select all

KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 5
Timeout 800
<IfModule mpm_prefork_module>
    ServerLimit           1024
    StartServers               5
    MinSpareServers        15
    MaxSpareServers       50
    MaxClients                 1024
    MaxRequestsPerChild  0
</IfModule>

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

#17 Postby ufkabakan » Aug 13, 2012 5:46 pm

Same problem:

http://sibsoft.net/forum/11-resource-te ... t4953.html

My error msg a bit diferrent because my Apache version diferrent (Apache)

Code: Select all

[[email protected] ~]# yum info httpd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.intergenia.de
 * extras: centos.intergenia.de
 * updates: ftp.halifax.rwth-aachen.de
Installed Packages
Name        : httpd
Arch        : x86_64
Epoch       : 1
Version     : 2.2.15
Release     : 15.el6.vm.1
Size        : 2.9 M
Repo        : installed
From repo   : virtualmin
Summary     : Apache HTTP Server
URL         : http://httpd.apache.org/
License     : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
            : web server.



Can u share your "yum info httpd" and "ulimit -a" print ?

PowerChaos
Posts: 521
Joined: Dec 19, 2009 5:12 pm
Location: belguim
Contact:

#18 Postby PowerChaos » Aug 13, 2012 9:43 pm

first of all
enable the childnode ... do not put it on 0 as your childs will NEVER reboot ( that sigkill )

because your childserver never reboots/recreate so it use up a lot of ram/cpu ( just like a dos attack does )

also your apache connections is on 1024 , put it lower
even my server with 12GB ram and a I7 920 ( 3GHZ ) can not handle that big amount of users in apache ( got it at 350 , over 350 let crash the server and are you not able to acces it anymore)

small sidenote , my settings goes about a webserver that got a lot more running then just apache :D (just check status page to get a idea )

lets continue
to lower load , put startservers on 15 and min spare on 5 and maxspare on 25 or so
because startservers is only when apache starts up , min = to keep alive and max is the max amount it can create
together with maxrequestsperchild will it force recreating new spare servers and reduce serverload and mem usage

i can not say what exact settings you need to use as they depend on amount of users/browsers , the server itself , the ram amount and so on

you need to tweak it yourself and slowly incrase the value or lower the value to see what the difference is

but first of all , do not just raise the value's because you think they are better , it is easy to misconfigure it and bring your server down then to configure it right

hopely this helped you

@coolsalman_1
added you to skype and to msn

Greetings From PowerChaos

pony99
Posts: 55
Joined: Jul 08, 2012 3:45 pm

#19 Postby pony99 » Aug 14, 2012 2:02 pm

@ufkabakan

ulimit -a


Code: Select all

core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 20
file size               (blocks, -f) unlimited
pending signals                 (-i) 16382
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) unlimited
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited


Thanks PowerChaos, I will try and change parameters

pony99
Posts: 55
Joined: Jul 08, 2012 3:45 pm

#20 Postby pony99 » Aug 24, 2012 5:03 pm

I am experimentation with ServerLimit on my fileservers. But I don't know what's the best value. I have try 600, 300, 50 etc , what is better? A high or low value?

greetings
pony


Return to “XFileSharing Pro”

Who is online

Users browsing this forum: No registered users and 0 guests