[Modules] mod_gnutls making Apache use 100% CPU

Simon Josefsson simon at josefsson.org
Fri Apr 24 05:28:32 EDT 2009


Sander Marechal <s.marechal at jejik.com> writes:

> Simon Josefsson wrote:
>> If strace doesn't show anything, it means it isn't doing any syscalls,
>> which can happen if it is stuck in a busy loop.  Next step would be to
>> run 'gdb /usr/sbin/apache2 PID' or similar and then run 'bt'.
>> Installing apache2-dbg may help, if you are on debian.
>
> I'm on Debian.
>
> Meanwhile, I managed to get an strace by reducing the number of forks
> that Apache makes and attaching an strace to them all. See the
> attachment (I hope your mailinglist accepts attachments). At the end of
> this trace nothing happens anymore but the process still uses 100% CPU.
>
> I'll get a GDB backtrace next.

I recall something like that, it happened if the cache was corrupt.
Maybe you could stop apache, copy away /var/cache/apache2/gnutls_cache,
and start apache again, to see if it solves the problem?  Save the cache
file so we can try to debug why this happened.

/Simon


More information about the Modules mailing list