Re: Slow on all pages

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
Any other ideas?  :-)

Anyone know enough about Perl to take a guess as to where the slowdown
is happening?  As I said before, even the home page run from the
command line always takes 3 seconds.  Here's the profiling output:

/home/www/bugzilla>#> dprofpp -u
Total Elapsed Time = 2.930948 Seconds
         User Time = 2.896812 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 14.1   0.410  0.410      8   0.0512 0.0512  CGI::_compile
 7.94   0.230  0.308      6   0.0383 0.0514  Bugzilla::DB::BEGIN
 6.90   0.200  1.892     30   0.0067 0.0631  main::BEGIN
 6.21   0.180  0.239      9   0.0200 0.0266  Template::Config::load
 5.52   0.160  0.398     10   0.0160 0.0398  Template::BEGIN
 4.83   0.140  0.140     10   0.0140 0.0140
Template::Provider::_load_compiled
 4.83   0.140  1.245     13   0.0108 0.0957  Bugzilla::BEGIN
 4.14   0.120  0.190      4   0.0300 0.0474  Bugzilla::CGI::BEGIN
 4.14   0.120  0.587      6   0.0200 0.0978  Bugzilla::Template::BEGIN
 3.11   0.090  0.259      3   0.0300 0.0862  Bugzilla::Util::BEGIN
 2.42   0.070  0.089     83   0.0008 0.0011  Exporter::import
 2.07   0.060  0.080     35   0.0017 0.0023  vars::BEGIN
 2.07   0.060  0.109     15   0.0040 0.0073  Template::Document::BEGIN
 2.07   0.060  0.139      9   0.0067 0.0154  Bugzilla::Config::BEGIN
 1.73   0.050  0.070     13   0.0038 0.0053  DBI::BEGIN

Thanks!
Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Tim Thome
Russell wrote:
> Any other ideas?  :-)
>
> Anyone know enough about Perl to take a guess as to where the slowdown
> is happening?  As I said before, even the home page run from the
> command line always takes 3 seconds.  Here's the profiling output:

Hmmm... one thing, I looked back at the thread, and you didn't mention
what kind of HW config.

I'm running Fedora Core 3 on an AMD 2500+ barton chip, 256MB on an
nForce2 motherboard with a staticIP.

running the same command...

real    0m0.014s
user    0m0.000s
sys     0m0.001s

Hmmm... did you disable IPV6 support for Linux and try again?

Tim
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Send Mail configuration for Bugzilla

vrayudu
Hello All,

I have configured send mail using this URL http://www.glob.com.au/sendmail/
I have given smtp_server & default_domain

Still I couldn't able to send mails when I log the bugs.

Do I need to give these parameters also???

; if your smtp server requires authentication, uncomment and modify the
; following two lines

;auth_username=
;auth_password=
 
; if your smtp server uses pop3 before smtp authentication, uncomment and
; modify the following three lines

;pop3_server=
;pop3_username=
;pop3_password=

Thanks in Advance,
Vijay.

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
In reply to this post by Tim Thome
Tim Thome wrote:
> Hmmm... one thing, I looked back at the thread, and you didn't
> mention what kind of HW config.

I'm running it with Apache 2.0.46 on CentOS 3.4 (essentially Red Hat
Enterprise Linux 3) on a Pentium 4 3.2Ghz with 1GB RAM.  I should also
mention that all other CGI programs on that machine are lightning fast,
including an installation of the YaBB bulletin board, which was also
written in Perl.  So I *think* my Perl installation is probably ok.

> Hmmm... did you disable IPV6 support for Linux and try again?

If I'm reading it right, it's not currently enabled.  "ifconfig"
reports normal "inet" addresses only, as opposed to "inet6".  But I
added "alias net-pf-10 off" to /etc/modprobe.conf and rebooted, but
still see the same 3 seconds to execute the main index.cgi from the
command line.

Thanks for any other ideas,
Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Christopher Hicks
On Tue, 17 May 2005, Russell wrote:
> Tim Thome wrote:
>> Hmmm... one thing, I looked back at the thread, and you didn't
>> mention what kind of HW config.
>
> I'm running it with Apache 2.0.46 on CentOS 3.4 (essentially Red Hat
> Enterprise Linux 3) on a Pentium 4 3.2Ghz with 1GB RAM.  I should also
> mention that all other CGI programs on that machine are lightning fast,
> including an installation of the YaBB bulletin board, which was also
> written in Perl.  So I *think* my Perl installation is probably ok.

This is really odd.  Is MySQL on the same box or across the network?  Does
running the script a second time produce the same results as running it
once?

>> Hmmm... did you disable IPV6 support for Linux and try again?
>
> If I'm reading it right, it's not currently enabled.  "ifconfig"
> reports normal "inet" addresses only, as opposed to "inet6".  But I
> added "alias net-pf-10 off" to /etc/modprobe.conf and rebooted, but
> still see the same 3 seconds to execute the main index.cgi from the
> command line.

Sounds right.

--
</chris>

"There are four boxes to be used in defense of liberty:
  soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
In reply to this post by Russell G
Christopher Hicks wrote:
> This is really odd.  Is MySQL on the same box or across the network?
> Does running the script a second time produce the same results as
> running it once?

Hi Christopher,

I'm running MySQL 4.1.10a-standard on the same machine that Bugzilla is
installed on, so everything's on one machine.  As a test just now, I
renamed the bugzilla database and tried running index.cgi from the
command line again, and got the same results.  So from what I can tell,
it doesn't seem to be related to MySQL.

Running the script a second (and third, and fourth) time produces the
same results.  Actually, every single page in Bugzilla, including
index.cgi, all take about 3 seconds to run.

I tried digging into it again today, by commenting out lines of code
trying to find the cause.  I had to go from index.cgi to globals.pl to
Bugzilla.pm to Bugzilla/Template.pm, commenting out various lines to
follow the trail, and what I found was that each time I found a time
improvement, it was only about a half second.  So after several files,
I had it down from 3 seconds to 2.5 to 2 to 1.4 to 0.9, and then I
wasn't able to go any further without things getting really messy.  But
since I never found one particular line of code that was the culprit,
I'm starting to think that I've got some type of general slowdown in
some of the Perl modules, or in Perl itself.  But as I said before, the
Perl bulletin board I'm running seems quite fast -- maybe it's not
using the same modules though.

Thanks,
Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Max Kanat-Alexander
        What is the full directory path that Bugzilla is running in? Do you
have SELinux enabled? Does it get faster if you disable SELinux?

        -Max
--
http://www.everythingsolved.com/
Everything Solved: Experts at Bugzilla... and everything else, too.

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
In reply to this post by Russell G
Max Kanat-Alexander wrote:
> What is the full directory path that Bugzilla is running in?

It's in /home/www/bugzilla

> Do you have SELinux enabled? Does it get faster if you disable
> SELinux?

I don't know much about SELinux, but from what I can tell, it's not
even installed.  The file "sestatus" doesn't exist anywhere on the
machine, and doing a locate on selinux only returns the following:

/usr/share/redhat-config-users/selinux.py
/usr/share/redhat-config-users/selinux.pyc
/home/gearbox/tmp/cross/mipsel-linux-uclibc/include/linux/selinux_netlink.h

Thanks,
Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Max Kanat-Alexander
In reply to this post by Russell G
On Wed, 2005-05-18 at 04:21 +0000, Russell wrote:
> It's in /home/www/bugzilla

        Are your other applications running in directories like that, or are
they in /var/www/html/?

> I don't know much about SELinux, but from what I can tell, it's not
> even installed.  The file "sestatus" doesn't exist anywhere on the
> machine, and doing a locate on selinux only returns the following:

        Hrm. If you do "getenforce" as root, does it return anything? That's
the easiest way to tell.

        Also, slocate isn't actually enabled by default anymore on FC3, so the
locate database could be out of date.

        -Max
--
http://www.everythingsolved.com/
Everything Solved: Experts at Bugzilla... and everything else, too.

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
In reply to this post by Russell G
Max Kanat-Alexander wrote:
> On Wed, 2005-05-18 at 04:21 +0000, Russell wrote:
> > It's in /home/www/bugzilla
>
> Are your other applications running in directories like that, or are
> they in /var/www/html/?

Actually on this system document root is /home/www/html, so
/home/www/bugzilla is parallel to the html directory, and I'm using an
alias in the Apache config file to make the /bugzilla url redirect to
the proper directory. (the fact that it's all under /home/www is
related to how backups work on this system)

> Hrm. If you do "getenforce" as root, does it return anything? That's
> the easiest way to tell.
>
> Also, slocate isn't actually enabled by default anymore on FC3, so
the
> locate database could be out of date.

I get "command not found", and locate can't find it either (and it is
actually enabled to run daily on this system).

Thanks,
Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools
Reply | Threaded
Open this post in threaded view
|

Re: Slow on all pages

Russell G
In reply to this post by Russell G
Max Kanat-Alexander wrote:
> On Wed, 2005-05-18 at 04:21 +0000, Russell wrote:
> > It's in /home/www/bugzilla
>
> Are your other applications running in directories like that, or are
> they in /var/www/html/?

Oops, forgot to mention...  most of my cgi programs are under
/home/www/cgi-bin, but I do have phpMyAdmin running under
/home/www/phpMyAdmin, with a similar alias in the Apache config.  Of
course, it's running php instead of Perl though.

Russell

_______________________________________________
mozilla-webtools mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-webtools