Doug Mandell wrote:
On 6/29/2007, "Jim Pingle" lists@pingle.org wrote:
Have you watched the process list with top to see what process is actually using the most CPU time?
I've actually seen this problem as well, though admittedly I've got a PIII 500 and just assumed that it would go away when I (eventually) upgrade the server.
That's not so much older than my hardware that I'd expect that large of a difference.
I'm using Debian Sarge, Apache 1.3.33, PHP 4.3.10, Sendmail 8.13.4, and Dovecot 0.99. CPU utilization jumps up to near 100% when I log in, and pretty much all of that is Apache. I've been using SVN for somewhere close to 9 months and this has always been the case for me, despite frequent upgrades.
I'm using FreeBSD 6.2-STABLE (As of Feb 19th), Apache 2.2.4, PHP 5.2.2, Postfix 2.4.1, and Courier IMAP 4.1.3 authenticating via PAM only. I have another system configured similarly but on much better hardware, the difference being it authenticates via mysql and it doesn't have problems either. I'm using the SVN version as well, and have been for quite some time.
I wonder if it might be a certain RoundCube option that's being used. Here are the changes I have to main.inc.php:
$rcmail_config['enable_caching'] = FALSE; $rcmail_config['default_host'] = '[my domain]'; $rcmail_config['ip_check'] = TRUE; $rcmail_config['date_short'] = 'D g:ia'; $rcmail_config['date_today'] = 'g:ia'; $rcmail_config['spellcheck_uri'] = '127.0.0.1:14003/?lang='; $rcmail_config['preview_pane'] = TRUE;
In particular I wonder if you're using the message cache. If you are, try disabling it to see if performance improves.
I'm not sure if this is particularly helpful to you, as my hardware is lousy, but I figured as long as we were discussing performance I'd provide another data point. Other PHP applications barely register on this machine, so the performance I see from Roundcube is definitely outside of the norm.
It doesn't hurt to have more input, I hope we can find some commonalities between people with high CPU usage though.
Jim
It is possible that CPU usage isn't the root cause of the system
slowdown, just one of the symptoms. Sometimes high CPU usage can be
the result of lots of disk I/O.
The processes don't really need the CPU, but once the system gets
into a backlog because of a lot of disk I/O, CPU usage increases
dramatically. Watch for processes that are in "D" status which
indicates blocked for I/O most of the time.
Are a lot of users using the "search" feature ?
top contents
<snip>
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3081 apache 25 0 36660 12m 4044 R 13 0.6 1:11.59 httpd 3095 apache 25 0 36692 12m 4388 R 13 0.6 1:10.78 httpd 3897 apache 25 0 36716 12m 4360 R 13 0.6 1:15.59 httpd 3963 apache 25 0 36640 12m 4152 R 13 0.6 1:07.89 httpd 3972 apache 25 0 36708 12m 4060 R 13 0.6 1:11.78 httpd.
All apache processes, not imap processes.
IMHO, PHP is processing a lot of stuff that it got from the imap or
db connections.
All are in "R" or running status, but 25 seems an odd priority to me,
my apache processes run around 15 or 16 most of the time.
Charles Dostale System Admin - Silver Oaks Communications http://www.silveroaks.com/ 824 17th Street, Moline IL 61265
Is there anything else running on this server, or is it dedicated to roundcube only?
Cheers, Till
Hello,
This server is dedicated to Roundcube only.
-----Original Message----- From: till [mailto:klimpong@gmail.com] Sent: Tuesday, July 03, 2007 10:26 AM To: RoundCube Dev Subject: Re: [RoundCube Dev] 100% CPU
Is there anything else running on this server, or is it dedicated to roundcube only?
Cheers, Till
On 7/3/07, Diana Ventimiglia diana_ventimiglia@volusion.com wrote:
Hello,
This server is dedicated to Roundcube only.
Could you figure out if users search a lot, or if you have large mailboxes and so on. Or anything helpful in particular?
Also - I asked this on IRC -, which version of Roundcube are you running? SVN? 0.1rc1 ? Something older?
Till
For what it's worth my server is pretty much just used by me, so I can tell when Roundcube is acting up. I've been using various versions of SVN and the problem has remained the same for me throughout. For me the spike to 100% utilization happens when I log in and when I try to view the "Folders" tab in "Personal Settings".
While I don't have a lot of emails in my mailbox (less than 200) and don't have a lot of folders that I'm subscribed to (14), all of my IMAP folders are in my home folder (it's an old config decision, don't ask) so there are a lot of folders/files that I'm not subscribed to that are sitting in the same directory. Perhaps what's happening is it's crawling through the directory looking for folders I'm subscribed to and getting hung up by the number of files in the directory?
On 7/3/2007, "till" klimpong@gmail.com wrote:
On 7/3/07, Diana Ventimiglia diana_ventimiglia@volusion.com wrote:
Hello,
This server is dedicated to Roundcube only.
Could you figure out if users search a lot, or if you have large mailboxes and so on. Or anything helpful in particular?
Also - I asked this on IRC -, which version of Roundcube are you running? SVN? 0.1rc1 ? Something older?
Till
On 7/4/07, Doug Mandell dmandell@gristle.org wrote:
For what it's worth my server is pretty much just used by me, so I can tell when Roundcube is acting up. I've been using various versions of SVN and the problem has remained the same for me throughout. For me the spike to 100% utilization happens when I log in and when I try to view the "Folders" tab in "Personal Settings".
While I don't have a lot of emails in my mailbox (less than 200) and don't have a lot of folders that I'm subscribed to (14), all of my IMAP folders are in my home folder (it's an old config decision, don't ask) so there are a lot of folders/files that I'm not subscribed to that are sitting in the same directory. Perhaps what's happening is> it's crawling through the directory looking for folders I'm subscribed to and getting hung up by the number of files in the directory?
By default RC only polls the subscribed folders. So the rest is pretty much ignored. At least that should be the case.
Which IMAP server do you use? Does it sit on the same server, or remote, etc..
Till
By default RC only polls the subscribed folders. So the rest is pretty much ignored. At least that should be the case.
Which IMAP server do you use? Does it sit on the same server, or remote, etc.
I use Dovecot 0.99, and the IMAP server is on the same server as Roundcube. I don't see any speed problems or high CPU utilization when I use another PHP-based webmail product (Ilohamail).
Doug