[rt-users] leaking of DBI connections, etc

Paolo Campanella paolo at mighty.co.za
Thu May 15 12:20:27 EDT 2003


Hi

I just recently installed RT, without much hassle (IIRC, Log::Dispatch
was not detected as missing by the dependency script), and found that 
every time a page is loaded (even the first login page), a few database
connections are leaked, with this end result:

[Thu May 15 16:23:51 2003] [error] Connect Failed Too many connections
 at /opt/rt3/lib/RT.pm line 123

I tried removing PerlModule Apache::DBI from my httpd.conf, but that
made no difference.

Eventually I added this to my handler method in /opt/rt3/bin/webmux.pl:
$RT::Handle->Disconnect();

Which fixed the problem. I haven't looked at it too deeply yet, but
does that sound familiar to anyone?

Another small issue: I had to add "use utf8;" to at least the following:
/opt/rt3/share/html/Ticket/Elements/ShowHistory
/opt/rt3/share/html/Ticket/Display.html

to avoid this error:
"Unrecognized escape \p in character class passed through before HERE
mark in regex m/(\pL[\p << HERE L']*)/ at
/usr/lib/perl5/site_perl/Text/Autoformat.pm line 429.".

(I'm using perl 5.6.1, apache 1.3.27, mod_perl 1.24).


Bye

Paolo





More information about the rt-users mailing list