We recently took over a webmail mail system and are running FreeBSD, Postfix, Apache 
mod_php4.3, Courier-imap and SquirrelMail. The machine is a P4 1.8Ghz with 7200rpm IDE 
drives and 1GB of RAM.

The traffic on the server is fair, we receive between 70k and 90k messages and have 
about 10k - 13k SM logins per day. Postfix doesn't load the CPU much, but SquirrelMail 
is killing it. The machine very often maxes out the CPU and the load average is 
between 2.5 and 3, with peeks up to 6.5.

What I have noticed is that Apache seems to get caught in some kind of loop with 
certain processes, which then utilizes the remaining CPU power. Sometimes these 
processes live for several hours before kill them manually. When matching the PID with 
Apache's server status I see that these processes are serving src/download.php

Sample output from top:

CPU states: 99.6% user,  0.0% nice,  0.4% system,  0.0% interrupt,  0.0% idle

  PID USERNAME PRI NICE  SIZE    RES STATE    TIME   WCPU    CPU COMMAND
54466 www       64   0 19880K  8408K RUN    118:46 64.06% 64.06% httpd <- download.php
29378 bjorn     33   0  2044K  1012K RUN      0:00  9.69%  1.76% top
14942 www        2   0 21060K  9912K sbwait   3:26  1.71%  1.71% httpd
87761 www        2   0 34468K 26780K sbwait   7:30  1.42%  1.42% httpd
39087 www        2   0 27072K 12724K sbwait   6:13  1.07%  1.07% httpd


I couldn't find any info on this specific problem - is it a know one ?

Another problem I had was with SquirrelMail and gettext. I first compiled php with 
gettext support but the is_IS characters came out wrong (i.e. ö became "o). I know of 
others having the same problem and the only solution seems to be not to include 
gettext and having php do the localization. That is though, as stated on the 
SquirrelMail webpage, much more process intensive. Is there a simple solution to this, 
or is this a bug in php that I should report?

And one more thing! When the user goes over quota, the left menu times out while 
executing a regexp match. I got timeouts in lines 71, 77 and 80 in 
functions/imap_general.php. The right window loads fine and the user can view and 
delete messages. I tried increasing the time limit in php to 50 secs, but to no avail. 
Anyone familiar with this ?

SquirrelMail version 1.2
$plugins[0] = 'delete_move_next';
$plugins[1] = 'calendar';
$plugins[2] = 'smallcal';
$plugins[3] = 'change_mysqlpass';
$plugins[4] = 'disk_quota';

Thanks for your time,
Bjorn Swift


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
--
squirrelmail-users mailing list
List Address: [EMAIL PROTECTED]
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id)95
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

Reply via email to