/ Zope / Apsis / Pound Mailing List / Archive / 2007 / 2007-05 / excess CPU usage?

[ << ] [ >> ]

[ XMLRPC Problems With Pound 2.3-1 / ... ] [ Documentaion woes / Wesley Moxam ... ]

excess CPU usage?
"David Barr" <david20708(at)gmail.com>
2007-05-03 19:36:15 [ FULL ]
I'm running Pound 2.3.1 on AIX 5.2.  I'm just testing it now, so there
is very little activity.  Currently, it is routing requests to two web
servers: a remote IIS server and a local Apache server on 127.0.0.1.
The IIS server is hosting a web application
(http://www.ericom.com/ptwc_551.asp).
 I plan to add more IIS servers
to the pool soon.  Also, there are other applications running on the
Pound server, but overall CPU utilization is pretty low.

I'm using "top" to monitor the processes on the system, and about
every five minutes I see "pound" jump up to the top of the process
list.  It will typically be using about 25% of the CPU, and it will
stay like that for about 30 seconds.  I'm logging all messages of
level DEBUG or higher, and there is nothing in the logs for Pound when
this happens.  There are two Pound processes running on the system,
and the CPU utilization is in the child process.

How can I debug what is causing these spikes in CPU usage?

Thanks,

David

Re: excess CPU usage?
"David Barr" <david20708(at)gmail.com>
2007-05-03 21:30:55 [ FULL ]
On 5/3/07, David Barr wrote:
[...]

I think I've figured out the problem.  I ran gprof and dbx to help me find it.

There's a comment in the code that says "Periodically regenerate
ephemeral RSA keys runs every T_RSA_KEYS seconds" which corresponds to
what I see happening.

I don't even want to use SSL encryption right now.  Maybe the best
thing to do is set N_RSA_KEYS to something low (like 0 or 1), and set
T_RSA_KEYS to something really big.

MailBoxer