[rt-users] Very high Apache CPU usage after upgrading to 4.0.0

Ruslan Zakirov ruz at bestpractical.com
Sat May 7 09:19:17 EDT 2011


Hello,

RT doesn't use SAX parsers directly. So it would be helpful to see
backtrace. Also, XML::SAX can use multiple parser and PurePerl is not
that fast. Install XML::LibXML::SAX::Parser to get faster version. Run
the following command to see list of parsers XML::SAX is configured to
use:

perl -MData::Dumper -MXML::SAX -e 'print Dumper( XML::SAX->parsers );'

On Sat, May 7, 2011 at 2:54 AM, Jonah Hirsch <jwh83 at nau.edu> wrote:
> After updating to 4.0.0, apache will sometimes spawn a process that uses
> 100% cpu usage for a few seconds, and noticeably slows down the entire
> system.
> What could be causing this, and what would the best course of action to
> debug it be?
> I've tried a clean install (with my custom config, but no plugins) which
> also has the same issue. 100% cpu usage from Apache, causing the system to
> screech to a halt.
> Apache 2.2.14 (Ubuntu)
> The only thing I'm getting logged is the following warning:
>
> Unable to recognise encoding of this document at
> /usr/share/perl5/XML/SAX/PurePerl/EncodingDetect.pm line 100.
> (/usr/share/perl5/XML/SAX/PurePerl/EncodingDetect.pm:100)
>
> -----------------------
> Jonah Hirsch
>



-- 
Best regards, Ruslan.



More information about the rt-users mailing list