I figured out the problem. (mailman 2.1.5)
In the qrunner script, I changed it to the following:
while not loop.isdone():
for qrunner in qrunners:
# In case the SIGTERM came in the middle of this iteration
if loop.isdone():
break
if verbose:
syslog('qrunner', 'Now doing a %s qrunner iteration',
qrunner.__class__.__bases__[0].__name__)
time.sleep(10);
qrunner.run()
if once:
break
What I added was the "time.sleep(10)" which pauses the script for 10
seconds before the next iteration.
Works perfectly. CPU usage down to almost nothing.
Thanks!
--Takahiro
Brad Knowles <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
09/10/2004 04:29 PM
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
Subject: Re: [Mailman-Users] qrunner using 99% of my CPU time?
At 3:36 PM -0700 2004-09-10, [EMAIL PROTECTED] wrote:
> None of these are helping, and qrunner -r All is still running at 99%
cpu
> usage.
You read everything at
<http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq04.041.htp>,
and all the threads that it links to?
What's in your logs? Are you sure you're not having NIS
or DNS problems?
--
Brad Knowles, <[EMAIL PROTECTED]>
"Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety."
-- Benjamin Franklin (1706-1790), reply of the Pennsylvania
Assembly to the Governor, November 11, 1755
SAGE member since 1995. See <http://www.sage.org/> for more info.
------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
------------------------------------------------------
Mailman-Users mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/