|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2009
/
2009-04
/
number of trheads/process in pound
[
How to prevent DoS? / "Jaroslav Lukesh" ... ]
[
Backend replication solution with pound? / ... ]
number of trheads/process in pound
Emilio Campos <emilio.campos.martin(at)gmail.com> |
2009-04-24 12:29:04 |
[ FULL ]
|
I configured pound 2.3.2 and i see that my pound only have 1 child whith
more than 200 conections
ps -ef | grep pound
pound 7846 1 0 12:20 ? 00:00:00 /opt/pound-2.3.2/sbin/pound
-f /opt/pound-2.3.2/etc/pound.conf -p /opt/pound-2.3.2/var/pound.pid
pound 7847 7846 0 12:20 ? 00:00:00 /opt/pound-2.3.2/sbin/pound
-f /opt/pound-2.3.2/etc/pound.conf -p /opt/pound-2.3.2/var/pound.pid
root 8036 2891 0 12:21 pts/0 00:00:00 grep pound
this is with 300 client about.
The client see the webs that pound send is very slow, i am reading in
google and i can see that pound send a lot of trheads but i can not see this
in my configuration, i am reading the pound man i donīt see any param where
i can put the number of process.
Can you see me why in my pound the number of threads is one? i donīt
explaint it
|
|
|
|
|
Re: [Pound Mailing List] number of trheads/process in pound
"Jaroslav Lukesh" <lukesh(at)seznam.cz> |
2009-04-24 13:29:34 |
[ FULL ]
|
To see how many connections you have in your pound, use this:
netstat -an | grep :80 | awk '{print $5}' | cut -f1 -d":" | sort | uniq -c |
sort -n
or logging - but this logs open ports, not connections:
#!/bin/sh
date>>/zope/zstatus_`date +%Y%m%d-%H`h.log
while true; do
netstat -an | grep :__webserver_port_number_here__ |grep -v 0.0.0.0| awk
'{print $5}' | cut -f1 -d":" | sort | uniq -c | sort -n |awk '{print $1}'
>>/zope/zstatus_`date +%Y%m%d-%H`h.log
sleep 10
done
----- Original Message -----
From: "Emilio Campos" <emilio.campos.martin(at)gmail.com>
[...]
|
|
|
Re: [Pound Mailing List] number of trheads/process in pound
Emilio Campos <emilio.campos.martin(at)gmail.com> |
2009-04-24 22:59:57 |
[ FULL ]
|
with this command i can see about 250 conections of internet clients; i
can see pound process , always i have 2 process in the machine and pound is
processing very slowly the http GET to the clients
root 9844 1 0 22:28 ? 00:00:00 /opt/pound-2.3.2/sbin/pound
-f /opt/pound-2.3.2/etc/pound.conf
root 9845 9844 1 22:28 ? 00:00:14 /opt/pound-2.3.2/sbin/pound
-f /opt/pound-2.3.2/etc/pound.conf
I thinked that the correct functionality of pound was run one child process
by conection of client, but i am checking the pound process and always I see
2 process, the father and the child :(
is it correct? I am thinking that the ./configure of the pound binary
didn`t link all the C headers necesary for the correct functionality
sorry my english and a lot of thanks!
2009/4/24 Jaroslav Lukesh <lukesh(at)seznam.cz>
[...][...][...]
|
|
|
|
|
Re: [Pound Mailing List] number of trheads/process in pound
Dave Steinberg <dave(at)redterror.net> |
2009-04-25 06:23:32 |
[ FULL ]
|
> I thinked that the correct functionality of pound was run one child
process[...]
No - Pound is a single-process, multi-threaded app. What you're seeing
is normal.
The second process is the supervisor I believe, which honestly I don't
really know a lot about. :)
[...]
|
|
|
|