Skip to Content.
Sympa Menu

en - Re: [sympa-users] wwsympa 2 sec execution time

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: alex kuklin <address@concealed>
  • Cc: address@concealed
  • Subject: Re: [sympa-users] wwsympa 2 sec execution time
  • Date: Tue, 21 Apr 2009 14:43:40 +0200

Hi,

A call to the wwsympa.fcgi is sure long. That's because it does a lot - I should say a lot - of things when starting. Loading list configs, loading server config, etc. It's a lot of work and then it is a long operation.
Fortunately it is done only once per wwsympa.fcgi process lifetime. So if you enabled fast CGI - which is the highly recommended option - you will have a long response time mainly for the first query after httpd restart.
Most of the BEGIN blocks that you see in your dprofpp output won't be used anymore after the server start.

For any informations regarding how to enable Fast CGI on your server, please refer to : https://www.sympa.org/manual/web-interface#using_fastcgi

Regards,

David Verdin

alex kuklin a écrit :
address@concealed">Hello

I've got a problem with wwsympa (debian/lenny, 5.3.4).
Each /usr/lib/cgi-bin/sympa/wwsympa.fcgi invocation consumes about 2 sec:

real    0m2.071s
user    0m1.848s
sys    0m0.177s

# dprofpp
Total Elapsed Time = 2.065988 Seconds
  User+System Time = 2.045988 Seconds
Exclusive Times
%Time ExclSec CumulS #Calls sec/call Csec/c  Name
 12.2   0.250  1.138     26   0.0096 0.0438  main::BEGIN
 6.35   0.130  0.563     26   0.0050 0.0217  List::BEGIN
 4.64   0.095  0.136      9   0.0106 0.0152  Template::Parser::_parse
 3.86   0.079  0.089    342   0.0002 0.0003  List::_load_scenario
 3.42   0.070  0.070    116   0.0006 0.0006  Exporter::export
 2.44   0.050  0.179      4   0.0125 0.0446  Datasource::BEGIN
 2.44   0.050  0.050     10   0.0050 0.0050  Template::Parser::BEGIN
 2.44   0.050  0.099      9   0.0055 0.0109  Family::BEGIN
 2.39   0.049  0.108    346   0.0001 0.0003  Exporter::import
 1.96   0.040  0.089      5   0.0080 0.0178  Conf::BEGIN
 1.96   0.040  0.069      1   0.0398 0.0693  SQLSource::connect
 1.91   0.039  0.172     13   0.0030 0.0132  List::_load_admin_file
 1.47   0.030  0.050     10   0.0030 0.0050  LWP::UserAgent::BEGIN
 1.47   0.030  0.100     10   0.0030 0.0100  Template::Config::load
 1.47   0.030  0.030    121   0.0002 0.0002  vars::import

Why? How could I fix that?


-- 
David Verdin
Comité réseau des universités



Archive powered by MHonArc 2.6.19+.

Top of Page