List Info

Thread: Re: Cherokee reaches load of 3030




Re: Cherokee reaches load of 3030
country flaguser name
Netherlands
2008-04-14 16:49:28
On Mon, 14 Apr 2008, A.D.F. wrote:

> First of all someone should verify what kind of
services
> are running on that machine.

It is cherokee that has a load of 30.


> It could be useful to run a script to poll load level
from /proc
> or from uptime(1) and when the load goes up it can
append to a text file
> the list of processes along with the CPU usage,
> i.e. (completely untested):
>
> while sleep 5
> do
> 	# get load average (only integer part)
> 	LOADAVG=`uptime | cut -d, -f 3 | cut -d: -f 2 | cut
-d. -f 2`
> 	# poll load usage
>
> 	[ $LOADAVG -lt 4 ] && continue
>
> 	# ok load usage greater than high water mark
> 	# get process usage
>
> 	# get date and time
> 	date >> file.txt
>
> 	# get list of open sockets
> 	netstat -a >> file.txt
>
> 	# get process and CPU usage
> 	top -d 3 -n 1 -b >> file.txt
> done

Currently not an option for me. I also suggested a script in
this order.
But they claim that the load from ps aux shows 30 at the
cherokee binary.

> > There is currently no logging on the webserver
(big traffic eater). I'll
> > ask if the maintainer can make a graph of the
webservers load per 5
> > minutes or so.
>
> OK, it could also be a DDoS attack, so maybe enabling
logging
> could clarify what's really happening.

A restart of cherokee fixes the problem.


Stefan

_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: Cherokee reaches load of 3030
user name
2008-04-15 05:16:59
On Mon, Apr 14, 2008 at 11:49 PM, Stefan de Konink
<skinkiexs4all.nl> wrote:
>  It is cherokee that has a load of 30.

Err... what does that mean?  There is no such concept (load
of a process,
or a group of processes).

Do you mean that you have 30 cherokee threads, each of them
running 100%
of the time?

Juan
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

Re: Cherokee reaches load of 3030
country flaguser name
Italy
2008-04-16 14:48:33
Stefan de Konink wrote:
> 
> On Mon, 14 Apr 2008, A.D.F. wrote:
> 
> > First of all someone should verify what kind of
services
> > are running on that machine.
> 
> It is cherokee that has a load of 30.
> 
> > It could be useful to run a script to poll load
level from /proc
> > or from uptime(1) and when the load goes up it can
append to a text file
> > the list of processes along with the CPU usage,
> > i.e. (completely untested):
> >
> > while sleep 5
> > do
> >       # get load average (only integer part)
> >       LOADAVG=`uptime | cut -d, -f 3 | cut -d: -f
2 | cut -d. -f 2`
> >       # poll load usage
> >
> >       [ $LOADAVG -lt 4 ] && continue
> >
> >       # ok load usage greater than high water
mark
> >       # get process usage
> >
> >       # get date and time
> >       date >> file.txt
> >
> >       # get list of open sockets
> >       netstat -a >> file.txt
> >
> >       # get process and CPU usage
> >       top -d 3 -n 1 -b >> file.txt
> > done
> 
> Currently not an option for me. I also suggested a
script in this order.
> But they claim that the load from ps aux shows 30 at
the cherokee binary.
>   .
>   .
>   .
> A restart of cherokee fixes the problem.

Sorry for the delay (I have been rather busy in the last 2
days),
I have a few more questions:

1) How many times per week does this problem happen ?


2) Did the previous version of Cherokee trunk (december
2007)
   show the same behaviour ?


3) What does strace(1) says (when the load is high) ?

   i.e.: strace -ppid [ -ofilename ]

   (where pid is the pid of Cherokee process or one of its
threads)

   also it could be useful to known how many socket
connections
   are used by using netstat -a.


4) Does the problem go away by using only one thread ?

Meanwhile within 2-3 days I'll review source code.

-- 
Nick Name:     A.D.F.
E-Mail:        <adefacc () tin ! it>
E-Mail-Format: Plain Text only (please); view using font
Courier New
--
_______________________________________________
Cherokee mailing list
Cherokeecherokee-project.com
http://cherokee-project.com/cgi-bin/mailman/listinf
o/cherokee

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )