[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

mailer.py eating 100% CPU during several minutes

From: Thomas Petazzoni <thomas.petazzoni_at_enix.org>
Date: Fri, 9 May 2008 14:30:00 +0200


On my Debian Etch system, I'm running subversion 1.4.2, and the
associated subversion-tools 1.4.2. In the post-commit file, I have:


/usr/lib/subversion/hook-scripts/mailer/mailer.py commit "$REPOS"

The repository is accessed through WebDAV from an external machine. The
problem is that every commit (even a one-line change in one file) takes
several minutes. On the server, I see that the mailer.py script eats
all the CPU. Running strace on the running mailer.py process allows to
see this:

close(948183) = -1 EBADF (Bad file descriptor)
close(948184) = -1 EBADF (Bad file descriptor)
close(948185) = -1 EBADF (Bad file descriptor)
close(948186) = -1 EBADF (Bad file descriptor)
close(948187) = -1 EBADF (Bad file descriptor)

[Gazillions of similar lines with file descriptor numbers inscreasing

If I run the exact same command (mailer.py), with the same arguments,
from the root account on the server, then it completes in one second
(and the mail is properly sent).

So there must be something different with the environment that runs
mailer.py (Apache 2, running as www-data), but I have no idea how to
debug further this issue.

Any idea ?



Thomas Petazzoni, thomas.petazzoni@enix.org, http://thomas.enix.org
Jabber, thomas.petazzoni_at_jabber.dk
Toulibre, http://www.toulibre.org - APRIL, http://www.april.org
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

Received on 2008-05-09 18:13:37 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.