Author Topic: roundcube causes cpu high load with apache  (Read 16396 times)

Offline fooman

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #15 on: June 18, 2009, 10:17:00 AM »
Same problem here running debian 4.0 & latest roundcube release.

Apache's server-status shows that the cpu hogging pids get stuck with "W" Sending Reply, but the request that got stuck seem to vary greatly.

With the huge user base that I have, this requires frequent apache restarts to keep se webmail-service even remotely usable, and thus it's very annoying.

Offline fooman

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #16 on: June 24, 2009, 03:41:25 AM »
Well it seems I finally got my load issues fixed.

I installed imap proxy and configured my imap servers to allow more imap instances. I think that the huge load was caused by imap connections dropping before the job was done. I allso dropped the timeout from apache to a small enough value so that in case something still gets hang up the proces wont stay up hogging cpu for too long.

From the looks of it, some of my imap servers are quite ancient, so they might be causing some problems as well.

Before the changes, my load was peaking close to 60 and now my average seems to hover around 5.

Offline waster2009

  • Jr. Member
  • **
  • Posts: 12
roundcube causes cpu high load with apache
« Reply #17 on: July 06, 2009, 09:48:36 AM »
It seems that I've found the problem. In my case authentication is based on LDAP information but there are many records in LDAP tree which does not have corresponding physical mailbox on the server. I guess the high load was caused by this issue. I've deleted such user records and now average load is about 0.3. Actually I don't know why some apache processes are hang if there is no mailbox on the server. Is that IMAP server or RC problem?

Offline algodas

  • Newbie
  • *
  • Posts: 4
High over CPU
« Reply #18 on: July 06, 2009, 06:40:56 PM »
Hi fooman, i have install a imapproxy but the problem about the high over cpu continued. What change you do in IMAP . I'm alter the MAXPERIP but don' t solve. Can you help me ? Thank's

Offline thiagopramos

  • Newbie
  • *
  • Posts: 2
roundcube causes cpu high load with apache
« Reply #19 on: August 06, 2009, 09:10:36 AM »
Change imap number of connection work a few situations.
But same server dont work with workaround.

Offline fooman

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #20 on: August 10, 2009, 03:48:11 AM »
I removed the connection limit per ip completely because the majority of the connections come through the proxying server. The amount of connections from one ip is insane in my case.

I'm still having issues with imap connections when people open up huge inboxes or use the personal settings/folders tab.

The folder tab seems to show way much stuff by default. Would be nicer if it would not show the content of all the folders immediately when you open the tab. In some cases the amount of files it wants to list reaches up to thousands depending what people have stuffed into their home folders etc.

Still working to improve the things more. I'm hoping that the .3 stable release really improves the imap performance.

Offline jamesjames

  • Newbie
  • *
  • Posts: 1
roundcube causes cpu high load with apache
« Reply #21 on: August 12, 2009, 10:16:26 AM »
I too am suffering from this issue, unfortunately can't add anything else to help find a solution

Offline Floy

  • Newbie
  • *
  • Posts: 1
please help ...
« Reply #22 on: August 27, 2009, 09:06:50 AM »
download attachment from roundcube.
"top" freebsd 7.2, apache 2.2.11, php 5.2.9, dovecot, exim:

68688 www          1 107    0 26192K 16972K RUN      0:15 52.29% httpd
  816 squid        1   4    0 81196K 77020K kqread   1:30  0.00% squid
  920 root         1  44    0  5012K  2156K select   1:16  0.00% ppp
 2994 root         1  44    0  8428K  2828K select   0:03  0.00% sshd
  865 root         1   4    0  3128K  1156K kqread   0:01  0.00% dovecot
  699 bind         4   4    0 29556K 22908K kqread   0:01  0.00% named
60247 root         1  44    0 20048K 11312K select   0:01  0.00% httpd
  805 root         1  44    0 10852K  8360K select   0:01  0.00% perl5.8.9
  868 root         1   4    0  3864K  1584K kqread   0:00  0.00% dovecot-auth
  800 root         1  44    0  6004K  2808K select   0:00  0.00% proftpd
  822 squid        1  -8    0  1376K   636K piperd   0:00  0.00% unlinkd
  628 root         1  44    0  3184K  1032K select   0:00  0.00% syslogd
  898 root         1   8    0  3212K  1076K nanslp   0:00  0.00% cron
 2998 root         1   8    0  4396K  1888K wait     0:00  0.00% bash
 2450 root         1   8    0  3464K  1248K wait     0:00  0.00% sh
68849 root         1   4    0  3864K  1744K kqread   0:00  0.00% dovecot-auth
 2430 mailnull     1  45    0  9220K  2564K select   0:00  0.00% exim-4.69-3

Please solve this problem !
I want to use this program, but this problem does not allow :(

Offline John5788

  • Newbie
  • *
  • Posts: 4
roundcube causes cpu high load with apache
« Reply #23 on: November 04, 2009, 03:12:09 AM »
hello, I am running across same problem with roundcube 0.3 on gentoo with apache2.

it took me a while, but I narrowed the issue down to roundcube and it makes my server completely unresponsive. when I have a tab with roundcube open, I can easily watch the server load rise consistently, and once I kill apache, the server load goes back down to a sane level.

If I dont access roundcube at all, my server loads remain sane until I log back into roundcube again, at which point it will climb until the server has effectively DOS'ed itself.

I am looking for a solution.

Offline yota79

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #24 on: November 05, 2009, 08:19:54 AM »
Hi , I have the same problem.

My version of Roundcube is the 0.2.1.

I have three server that work fine for 4 months, and now I see the the CPU load average go up to 120 and then the server crash.

If I restart the httpd, the load of server go down and ok, but the webmail not work. I see that is a problem with mysql , that have a lot of connection of select in rmail database.

I not try to delete this table becouse the server is in production. I use the cache becouse the imap server not in in the same server, and i have cache_lifetime 10 days .

Anything have a solution? Thank you.

p.s: The same problem have the other 2 servers , the load average up but not work when i restart httpd. The 3 server have the same table rmail... is this the problem?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,876
    • SKaero - Custom Roundcube development
roundcube causes cpu high load with apache
« Reply #25 on: November 05, 2009, 08:36:36 AM »
Quote from: yota79;22803
My version of Roundcube is the 0.2.1.
Does it happen with RoundCube 3.1?

Offline yota79

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #26 on: November 05, 2009, 09:47:44 AM »
Quote from: skaero;22805
Does it happen with RoundCube 3.1?


I don't know, but my version is the 0.2.1.

Offline corbosman

  • Sr. Member
  • ****
  • Posts: 260
roundcube causes cpu high load with apache
« Reply #27 on: November 06, 2009, 05:27:10 AM »
Everyone should try 0.3.1 , it has some fixes for sorting problems. If you have a LOT of email, anything pre-0.3.1 could be quite busy trying to sort all your email.

Make sure you turn indexsort on.

One thing I dont get from one of the previous replies. Why would RC/Imap see thousands of files? You should configure your imap server to have a specific directory for imap folders, and nothing else. Or are you saying you have thousands of mail folders? No imap server is going to like thousands of folders.

Offline yota79

  • Newbie
  • *
  • Posts: 3
roundcube causes cpu high load with apache
« Reply #28 on: November 06, 2009, 07:41:43 AM »
I try to poweroff two of three server and reboot but the problem persist. I set mysql in local and work fine. When i use the mysql on the other machine the problem return.

The problem is in the mysql , but in the session or in the cache?

There is a method to flush the session or cache table ?