Subject: The mailing list for listmasters using Sympa
List archive
Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?
- From: David Verdin <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?
- Date: Fri, 25 Sep 2015 10:45:08 +0200
|
Hi Tom, Le 25/09/2015 00:14, Fillmore, Tom a
écrit :
Hi, all -I am at present running a server with about 50 lists and 10,000 users. Until I got to about 30 lists the web interface loaded quickly, but it has slowed down to a crawl as more lists have been added. Now its takes no less than 20 seconds to reply, and ultimately causes 500 errors about one-half the time. During that time CPU usage always goes over 95%. I am using Apache2, fcgid and have the value for that set to '1' in sympa.conf. I've reviewed my Apache configs and they seem to be OK. Machine specs: Dual core mac mini, Debian 8.1, MySQL, 6GB RAM. It's on a virtualbox VM, which some might say is the problem, but in the past I've run on VirtualBox vm's with the same basic configuration and triple the number of lists, users and traffic. You should not have any trouble. I'm running a server with 8 GB, 8 CPU cores (but mainly one is actually used) on an old RHEL5. It is enough for 2,400 lists, 16 virtual hosts, 225,000 users and 360,000 subscriptions. It's on a VMware VM. Based on what I've read online in posts + the docs it seems that the problem lies in one or more of these areas: 1) The new web interface is massively slower I don't think so. Everything funky in the web interface is actually run in _javascript_, thus impacting the web client only. So it has no impact on cpu / memory usage on the server. 2) There is something wrong with my Apache configs It's a possibility. Could you show us the part regarding fcgi? 3) There is a problem with the cgi code that generates the web interface Also a possibility. But I should investigate what'w wrong and why I can't reproduce it. 4) fcgid is a dog, speed-wise :-) I never noticed it before. Out of these three items I really can only control 2 & 4 I'm open to all ideas, but can a few folks send me their Apache config files that work? Please be sure to indicate the location where they are installed (eg /etc/apache2/... , /home/sympa/..., etc) OK. Here is what I have: in /etc/httpd/conf/httpd.conf ## FastCGILoadModule fcgid_module modules/mod_fcgid.soAlias /static-sympa /home/sympa/static_content<IfModule mod_fcgid.c> IPCCommTimeout 120 MaxProcessCount 30 SocketPath /var/run/fcgid/sock </IfModule>ScriptAlias /sympa /home/sympa/bin/wwsympa-wrapper.fcgiAnd we have separate files for each virtual host: /etc/httpd/conf.d/domain.tld:80 <VirtualHost <IP>:80>RedirectMatch (/wws.*)$ https://domain.tld$1Alias /static-sympa/css/domain.tld
/home/sympa/static_content/css/domain.tld## Redirecting all towards HTTPSRedirectMatch ^(.*)$ https://domain.tld$1DocumentRoot "/var/www/domain.tld"ServerName domain.tld:80ServerAdmin email@ddressCustomLog logs/domain.tld/access_log combinedErrorLog logs/domain.tld/error_logCustomLog logs/access_log
combined-with-vhostRedirectMatch ^/$ http://domain.tld/sympa</VirtualHost> /etc/httpd/conf.d/domain.tld:443 <VirtualHost <IP>:443>DocumentRoot "/var/www/secure"ServerName domain.tld:443ServerAdmin email@ddressLogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\" **%T/%D**" combined_timedCustomLog logs/domain.tld/access_log combined_timedErrorLog logs/domain.tld/error_logCustomLog logs/access_log combined-with-vhost<Location /sympa> SSLOptions +StdEnvVars</Location>Alias /static-sympa/css/domain.tld
/home/sympa/static_content/css/domain.tldRedirectMatch /wws/(.*) https://domain.tld/sympa/$1RedirectMatch ^/$ https://domain.tld/sympaRedirect /wws https://domain.tld/sympaSSLEngine onSSLCertificateFile /path/to/certSSLCertificateKeyFile /path/to/keySSLCertificateChainFile /path/to/chain<Directory "/var/www/cgi-bin"> SSLOptions +StdEnvVars</Directory></VirtualHost>
Hope this helps. Regards, David Other than this problem everything is working just fine. Thanks! Tom Fillmore --
A bug in Sympa? Quick! To the bug tracker!
| ||||||
Attachment:
smime.p7s
Description: Signature cryptographique S/MIME
-
[sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
Fillmore, Tom, 09/24/2015
-
Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
David Verdin, 09/25/2015
-
Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
Tom Fillmore, 09/26/2015
-
RE: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
Steve Shipway, 09/27/2015
- Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?, Tom Fillmore, 09/27/2015
-
RE: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
Steve Shipway, 09/27/2015
-
Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
Tom Fillmore, 09/26/2015
-
Re: [sympa-users] 6.2.3 - enormous cpu usage by web interface / Apache config?,
David Verdin, 09/25/2015
Archive powered by MHonArc 2.6.19+.
