RT 4.0.2 too much CPU hungry!

Hi all,

i’ve installed RT 4.0.2 in my office over a Debian. Here’s apache2 SSL
config:

ServerAdmin webmaster@localhost
    AddDefaultCharset UTF-8

    DocumentRoot "/opt/rt4/share/html"
    <Location />
        Order allow,deny
        Allow from all
    </Location>

SetHandler modperl
    PerlResponseHandler Plack::Handler::Apache2
    PerlSetVar psgi_app /opt/rt4/sbin/rt-server

PerlSetVar MasonStaticSource true
PerlSetVar MasonBufferPreallocateSize 2048000
PerlSetVar MasonDataCacheDefaults "cache_class=> MemoryCache,

cache_depth => 4"
PerlSetVar MasonPreloads ‘/Elements/*’

    <Perl>
        use Plack::Handler::Apache2;
        Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
    </Perl>

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory /opt/rt4/share/html>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

and this is RT_SiteConfig.pm:

root@centralino:/opt/rt4/etc# cat RT_SiteConfig.pm

Set($WebPort, 443);

Set( @Plugins, qw(RT::Extension::JSGantt RTx::Calendar) );
Set( @Plugins, qw(RT::Authen::ExternalAuth) );

We use LDAP for external auth and all RT works under SSL for security
reason.

The problem is that our apache2 istance use almost 100% of CPU and over
1GByte of RAM (plus some swap…):

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6984 www-data 20 0 87936 62m 4016 R 99.4 6.1 0:07.03
apache2

7012 root 20 0 2436 1136 896 R 0.7 0.1 0:00.14 top

and web is very slow responsiveness…

Any hint ?

Michele

Michele Pinassi
Servizio Reti, Sistemi e Sicurezza Informatica
Università degli Studi di Siena
tel: 0577.(23)2169
https://sites.google.com/a/unisi.it/o-zone/

signature.asc (262 Bytes)

Difficult to say.

We run RT 4.0.2 on a Debian 6 environment as well (manual installation,
manual perl dependency installation via cpan, etc.)

The only thing I see in your posted config is an error in the way your
plugins are included:

Set( @Plugins, qw(RT::Extension::JSGantt RTx::Calendar) );
Set( @Plugins, qw(RT::Authen::ExternalAuth) );

Should become:

Set(@Plugins, (qw(RT::Extension::JSGantt RTx::Calendar
RT::Authen::ExternalAuth)));

As example, this is how our plugin line is displayed:

Set(@Plugins, (qw(RT::Extension::SLA RT::Extension::HistoryFilter
RT::Extension::ResetPassword RT::Extension::MergeUsers)));

I have no clue if this is the error but the way I see it you should edit it
to match the syntax (as displayed in the comments inside the
RT_SiteConfig.pm).

Did you experience the same issues during testing?

– Bart2011/10/11 Michele Pinassi michele.pinassi@unisi.it

Hi all,

i’ve installed RT 4.0.2 in my office over a Debian. Here’s apache2 SSL
config:

ServerAdmin webmaster@localhost
   AddDefaultCharset UTF-8

   DocumentRoot "/opt/rt4/share/html"
   <Location />
       Order allow,deny
       Allow from all
   </Location>

SetHandler modperl
PerlResponseHandler Plack::Handler::Apache2
PerlSetVar psgi_app /opt/rt4/sbin/rt-server

PerlSetVar MasonStaticSource true
PerlSetVar MasonBufferPreallocateSize 2048000
PerlSetVar MasonDataCacheDefaults “cache_class=> MemoryCache,
cache_depth => 4”
PerlSetVar MasonPreloads ‘/Elements/*’

   <Perl>
       use Plack::Handler::Apache2;
       Plack::Handler::Apache2->preload("/opt/rt4/sbin/rt-server");
   </Perl>
Options FollowSymLinks AllowOverride None

<Directory /opt/rt4/share/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

and this is RT_SiteConfig.pm:

root@centralino:/opt/rt4/etc# cat RT_SiteConfig.pm

Set($WebPort, 443);

Set( @Plugins, qw(RT::Extension::JSGantt RTx::Calendar) );
Set( @Plugins, qw(RT::Authen::ExternalAuth) );

We use LDAP for external auth and all RT works under SSL for security
reason.

The problem is that our apache2 istance use almost 100% of CPU and over
1GByte of RAM (plus some swap…):

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6984 www-data 20 0 87936 62m 4016 R 99.4 6.1 0:07.03
apache2

7012 root 20 0 2436 1136 896 R 0.7 0.1 0:00.14 top

and web is very slow responsiveness…

Any hint ?

Michele


Michele Pinassi
Servizio Reti, Sistemi e Sicurezza Informatica
Università degli Studi di Siena
tel: 0577.(23)2169
Sign in - Google Accounts


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Hi all,

i’ve installed RT 4.0.2 in my office over a Debian. Here’s apache2 SSL
config:
PerlSetVar MasonStaticSource true

This is set by RT and has been for a long time

PerlSetVar MasonBufferPreallocateSize 2048000
PerlSetVar MasonDataCacheDefaults "cache_class=> MemoryCache,

cache_depth => 4"
PerlSetVar MasonPreloads ‘/Elements/*’

What are these for? Are they helping? They’re not standard parts of
a config.

You also don’t show the config that says what kind of apache worker
you’re using.

The problem is that our apache2 istance use almost 100% of CPU and over
1GByte of RAM (plus some swap…):

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6984 www-data 20 0 87936 62m 4016 R 99.4 6.1 0:07.03
apache2

7012 root 20 0 2436 1136 896 R 0.7 0.1 0:00.14 top

and web is very slow responsiveness…

Are you swapping? Any time apache goes into swap, it spends a lot of
time swapping data in and out and that ends poorly.

If you cannot give the box more ram, you probably want to limit the
number of children apache spawns.

If you believe the CPU burn is coming from RT itself, you can enable
MasonX::Profiler as documented in RT_Config.pm and see what component
is taking the most time.

-kevin

Dear bart,

thanks for you suggestion but still RT is too slow. In the log i have a
lot of warnings like:

[Thu Oct 13 08:33:41 2011] [warning]: Use of uninitialized value
$location in regexp compilation at
/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm line 105.
(/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm:101)

Any hint ?

MicheleOn 11/10/2011 12:34, Bart wrote:

Difficult to say.

We run RT 4.0.2 on a Debian 6 environment as well (manual
installation, manual perl dependency installation via cpan, etc.)

The only thing I see in your posted config is an error in the way your
plugins are included:

Michele Pinassi
Servizio Reti, Sistemi e Sicurezza Informatica
Università degli Studi di Siena
tel: 0577.(23)2169
https://sites.google.com/a/unisi.it/o-zone/

signature.asc (262 Bytes)

There was a problem in RT 4.0 with JS minify. I think it was fixed in
4.0.2 though.
You can search for js minify in the mailing list and try it.

Hope this helps.

Hugs.2011/10/13 Michele Pinassi michele.pinassi@unisi.it:

Dear bart,

thanks for you suggestion but still RT is too slow. In the log i have a
lot of warnings like:

[Thu Oct 13 08:33:41 2011] [warning]: Use of uninitialized value
$location in regexp compilation at
/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm line 105.
(/usr/local/share/perl/5.10.1/Plack/Handler/Apache2.pm:101)

Any hint ?

Michele

On 11/10/2011 12:34, Bart wrote:

Difficult to say.

We run RT 4.0.2 on a Debian 6 environment as well (manual
installation, manual perl dependency installation via cpan, etc.)

The only thing I see in your posted config is an error in the way your
plugins are included:


Michele Pinassi
Servizio Reti, Sistemi e Sicurezza Informatica
Università degli Studi di Siena
tel: 0577.(23)2169
Sign in - Google Accounts


RT Training Sessions (http://bestpractical.com/services/training.html)

  • San Francisco, CA, USA — October 18 & 19, 2011
  • Washington DC, USA — October 31 & November 1, 2011
  • Barcelona, Spain — November 28 & 29, 2011

Sergio Roberto Charpinel Jr.