[rt-users] httpd speed on rt3

AJ rt at musefoundry.com
Wed Jan 21 15:44:59 EST 2004


Perhaps stderr isn't being logged.

Try starting apache with:
<apache_dir>/bin/httpd -X -f <apache_dir>/conf/httpd.conf 2>errfile 

errfile = path and filename of error file
outputfile = path and filename of standard output file

start apache in single process mode and log errors to the stderr. Easier to
trace then


-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Douglas E.
Warner
Sent: Wednesday, January 21, 2004 2:53 PM
To: rt-users at lists.fsck.com
Subject: Re: [rt-users] httpd speed on rt3

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 21 January 2004 12:53, Jesse Vincent wrote:
> Ok. There are two tools that it's worth using to attempt to debug what
> code the performance bottleneck is in: MasonX::Profiler and
> Apache::DProf.  I'd love to see traces for your longer tickets.

I seem to have Apache::Dprof working, but I'm not getting any output from 
MasonX::Profiler.  I tried putting the config in both the httpd.conf and in 
RT_SiteConfig.pl, but neither seemed to generate output in either my error 
log or my RT log (w/ log to file set to 'debug').  Here's what I've tried:

== httpd.conf ==
    ServerName rt3.ctinetworks.com
    DocumentRoot /usr/local/rt3/share/html
    AddDefaultCharset UTF-8

    PerlModule Apache::DProf
    PerlModule MasonX::Profiler
    PerlSetVar MasonPreamble "my $p = MasonX::Profiler->new($m, $r);"
    PerlModule Apache::DBI
    PerlRequire /usr/local/rt3/bin/webmux.pl

    <Location />
        SetHandler perl-script
        PerlHandler RT::Mason
    </Location>

    ErrorLog logs/rt3-error_log
    CustomLog logs/rt3-access_log combined

== RT_SiteConfig.pl ==
@MasonParameters = (preamble => 'my $p = MasonX::Profiler->new($m, $r);'); ;

with MasonParameters commented out in httpd.conf
Set($LogToFile      , 'debug');
Set($LogDir, '/usr/local/rt3/var/log');
Set($LogToFileNamed , "rt.log");    #log to rt.log

- -Doug

- -- 
Douglas E. Warner    <dwarner at ctinetworks.com>     Network Engineer
CTI/PAdotNET         http://ctinetworks.com        +1 717 975 9000
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFADtiHJV36su0A0xIRAkPwAJ9fxqXkmGgczUADutAbBU1B1wUxRACfQI9h
G+5REt453kwSAP1gei4XNAE=
=+KK/
-----END PGP SIGNATURE-----

_______________________________________________
rt-users mailing list
rt-users at lists.bestpractical.com
http://lists.bestpractical.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm




More information about the rt-users mailing list