High CPU load on RT 3.4.4, Apache2, Fast_CGI

My “standard” config is to run RT in its own user account, with a custom
installed perl, and apache. One of my installations is as such:

/home/rt/

rt - installed rt
local-perl - local perl
apache2 - apache2 (see my naming convention yet?)
src - the source files

This system ran fine under Apache 1.3 w/ mod_perl. I needed to move to
Apache 2.0 (for LDAP authentication to work, I couldn’t get it running
under 1.3). I also switched to Fast_CGI because I could not get
mod_perl working properly … I keep getting perl module errors.

As soon as I start apache, or soon thereafter, I get 100% cpu usage from
Apache’s fast_cgi …

[root@rtserver root]# ps aux | grep rt
rt 3820 0.0 0.3 7704 3496 ? S Nov22 0:00
/home/rt/apache2/bin/httpd -k start
rt 22960 0.0 0.3 7704 3500 ? S 18:00 0:00
/home/rt/apache2/bin/fcgi- -k start
rt 22961 0.0 2.6 29636 27328 ? S 18:00 0:00
/home/rt/local-perl/bin//perl /home/rt/rt/bin/mason_handler.fcgi
<<<<<<<<<<<<<<<<<<<
rt 22962 0.0 0.3 7704 3608 ? S 18:00 0:00
/home/rt/apache2/bin/httpd -k start
rt 22963 0.0 0.3 7704 3608 ? S 18:00 0:00
/home/rt/apache2/bin/httpd -k start
rt 22964 0.0 0.3 7704 3608 ? S 18:00 0:00
/home/rt/apache2/bin/httpd -k start
rt 22965 0.0 0.3 7704 3608 ? S 18:00 0:00
/home/rt/apache2/bin/httpd -k start
rt 22966 0.0 0.3 7704 3608 ? S 18:00 0:00
/home/rt/apache2/bin/httpd -k start
root 23239 0.0 0.0 3672 656 pts/0 S 18:54 0:00 grep rt

It will never drop to 0% cpu, and my machine always reports 1.0 1.0 1.0
cpu usage. It seems to get slower and slower and slower until I restart
Apache (which I am doing every 4 hours at this point).

From httpd.conf

LoadModule fastcgi_module modules/mod_fastcgi.so

AddHandler fastcgi-script fcgi
FastCgiServer /home/rt/rt/bin/mason_handler.fcgi
ScriptAlias /rt /home/rt/rt/bin/mason_handler.fcgi

<VirtualHost *:8080>

DocumentRoot /home/rt/rt/share/html/
ScriptAlias /rt /home/rt/rt/bin/mason_handler.fcgi
RewriteEngine on
RewriteRule ^$ /rt [PT,L]
RewriteRule ^/$ /rt [PT,L]
RewriteRule ^/(.*) /rt/$1 [PT,L]

AuthLDAPEnabled on AuthLDAPAuthoritative on AuthName "Please login with your network username and password. Contact ************ with any problems"

AuthType Basic
AuthLDAPURL
ldap://:389/dc=,dc=corp?sAMAccountName?sub?(objectclass=)
AuthLDAPBindDN "cn=**,cn=users,dc=,dc=corp"
AuthLDAPBindPassword "
*********"
require valid-user

<LocationMatch /NoAuth>
Satisfy Any
allow from all

Other than the 100% cpu problem, this config works fine.

Does anyone have any ideas what might be causing my 100% cpu load problem?

Thanks!

VTW wrote:

As soon as I start apache, or soon thereafter, I get 100% cpu usage from
Apache’s fast_cgi …

It will never drop to 0% cpu, and my machine always reports 1.0 1.0 1.0
cpu usage. It seems to get slower and slower and slower until I restart
Apache (which I am doing every 4 hours at this point).

Other than the 100% cpu problem, this config works fine.
Does anyone have any ideas what might be causing my 100% cpu load problem?

I have RT 3.4.3 using apache2 and fastcgi here that isn’t showing any
problem. I don’t use LDAP at all for this installation.
Have you tried to disable LDAP auth just to make sure that isn’t causing
the 100% CPU usage?

Using the gentoo Linux dist with (among others) the following packages:
net-www/mod_fastcgi-2.4.2-r1
dev-perl/FCGI-0.67
net-www/apache-2.0.54-r31
www-apps/rt-3.4.3
dev-lang/perl-5.8.6-r6
dev-perl/Params-Validate-0.76
dev-perl/Cache-Cache-1.03
dev-perl/HTML-Mason-1.3101
www-apache/libapreq-1.2-r1

Don’t know if that helps…

/Andreas