Roundcube Community Forum

Release Support => Release Discussion => Topic started by: Growlizing on May 24, 2008, 10:18:21 AM

Title: Roundcube slow
Post by: Growlizing on May 24, 2008, 10:18:21 AM
I've set up roundcube and gotten everything working (except attachments, but that isn't important). The more important issue is that Roundcube is acting slow. It takes about 7 sec to login, and 6 sec for each mail to open. I have only two email-accs with 3 emails on each account, and the imap-server that's being used is on the same machine. Reloading the inbox takes another 7 tormenting seconds, and starting a new to send also takes 6 seconds.

Any tips on things I can look in to to resolve this?

Edit: I use SSL, will that have anything to say speed-wise?
Title: Roundcube slow
Post by: joculari on May 29, 2008, 10:37:27 AM
Same with me.

on my server it doesnt take 7 sek but 2 to 3, but still it is very annoying (Thunderbird is much faster). I remember that during the installation process there were some things marked as "not ok" that were recommended but not absolutely necessary. Could it be that the slowliness comes from on of these?

joculari
Title: Roundcube slow
Post by: Growlizing on June 01, 2008, 07:31:43 AM
For me, the connection speed with Thunderbird is also fine.
What are you running?

I'm running roundcube on lighttpd (1.4.19) with PHP 5.2.6 and courier/courier-imap with ssl on gentoo.
Title: Roundcube slow
Post by: Lukas on June 05, 2008, 03:59:12 AM
The same for me with RC 0.1.1 on Mac OS X 10.4.11, PHP 5.2.6, Courier-IMAP and Apache 2.0.61.
SquirrelMail, Telaen, Uebimiau and another couple of IMAP client work pretty fast. The same for Thunderbird and Apple Mail.

I read of other users having speed issues. After two days tests I am quite sure this is a Roundcube problem.

Is it possible that the developer doesn't have this problem??? And is it possible he doesn't give precise answers to this? Roundcube is fantastic!!! but with this problem is quite unuseable!!!

Please... tell us something! How do the optional installation components affect RC speed?

Thanks


Lukas
Title: Roundcube slow
Post by: Lukas on June 06, 2008, 05:22:51 AM
UPDATE: I realized this... My Roundcube tries to connect to the IMAP server using CRAM-MD5 method first and gets a LOGIN FAILED message. Using Thunderbird or Apple Mail I have no problem.

Roundcube tries for some seconds to login this way, using CRAM-MD5, then switches to another method and logs in correctly.

Maybe this is the problem?

HOW CAN I TELL RC NOT TO USE CRAM-MD5 METHOD AT ALL TO LOGIN?

Thanx


Lukas
Title: Roundcube slow
Post by: Lukas on June 06, 2008, 08:26:49 AM
Okay! After some tests I found a workaround!

Please, be careful since I am not a programmer so I do not guarantee this is a good way to solve the problem in a production environment!

To solve the slowness problem (if you use Courier-IMAP as IMAP server, like me), make a backup copy of the file imap.inc (in (roundcube folder)/program/lib/).
Then, download Roundcube 0.1-rc1, open the file imap.inc  near line 196 and copy the function iil_C_Authenticate.
Finally open the imap.inc file of the actual version and paste this function in order to sobstitute the same function in it (near line 254).

Works absolutely fine for me! Hope this helps you, too.


Luk
Title: Roundcube slow
Post by: Growlizing on June 07, 2008, 06:00:39 AM
Hmm, would be nice with some developer-attention to this, but I understood that they don't read here, as it isn't an official forum. Might make a bug-report though.
Title: Roundcube slow
Post by: francesco_r on June 07, 2008, 10:08:18 AM
The next stable release of RC will be very fast, i had the same problem with Courier but with this commit http://trac.roundcube.net/changeset/1431 a huge improvement was made.
See also this bug for more info: http://trac.roundcube.net/ticket/1485105.
So download the last SVN or wait the next stable release.

For Lukas: rc have a setting for your login problem. See the file config/main.inc.php to change the login type.
Title: Roundcube slow
Post by: Growlizing on June 07, 2008, 12:12:58 PM
Ok. I tried the svn version a couple of months ago, but I'll do it again now :)
Thanks for the tip.

Edit:
Read in the code, and looked at my imap-logs.
Then checked my courier config-files.
Turns out I had forgotten to remove some of the AUTH-types reported by capabilities.
They were not supported, but reported as supported. After I removed them, all is going smoothly :>
Title: Roundcube slow
Post by: zash on July 24, 2008, 04:39:48 PM
Quote from: Lukas;12435
Okay! After some tests I found a workaround!

To solve the slowness problem (if you use Courier-IMAP as IMAP server, like me), make a backup copy of the file imap.inc (in (roundcube folder)/program/lib/).
Then, download Roundcube 0.1-rc1, open the file imap.inc  near line 196 and copy the function iil_C_Authenticate.
Finally open the imap.inc file of the actual version and paste this function in order to sobstitute the same function in it (near line 254).

Works absolutely fine for me! Hope this helps you, too.


Luk


I use Courier-IMAP as well. After upgrading the the latest Alpha release I noticed how much slower it was.

The 'bug' is indeed in the function iil_C_Authenticate.

Replacing this line:
$reply = base64_encode('"' . $user . '" "' . $hash . '"');

with this line:
$reply = base64_encode($user." ".$hash);

will speed it up a great deal. It appears the additional quotation marks are not only not necessary for Courier-IMAP, but cause it to slow down considerably.
Title: Roundcube slow
Post by: rosali on July 25, 2008, 01:20:47 AM
I don't know when it was fixed, but the quotes are already removed in the current SVN release.
Title: Roundcube slow
Post by: jeffshead on September 01, 2008, 09:21:35 PM
Quote from: zash;13052
I use Courier-IMAP as well. After upgrading the the latest Alpha release I noticed how much slower it was.

The 'bug' is indeed in the function iil_C_Authenticate.

Replacing this line:
$reply = base64_encode('"' . $user . '" "' . $hash . '"');

with this line:
$reply = base64_encode($user." ".$hash);

will speed it up a great deal. It appears the additional quotation marks are not only not necessary for Courier-IMAP, but cause it to slow down considerably.

Holy smokes...what a difference this made! I've been searching and trying everything I find and finally found one that did the trick;)
Title: Roundcube slow
Post by: Wazooka on September 02, 2008, 09:28:19 AM
I noticed how slow it IS too. I applied this but it's still a few seconds waiting to load a message of 100 bytes? This is an engineering fault. Could you imagine a CMS working in this way? Please fix this devteam. And DO read your self-setup forum!
Title: Slowest email in Town
Post by: Jim Unsworth on February 23, 2011, 10:52:29 AM
The Roundcube email site take FOREVER to switch from inbox to outbox and to do anything at all. Why is it so slow. Not good for business. What is the problem.



Quote from: Wazooka;13662
I noticed how slow it IS too. I applied this but it's still a few seconds waiting to load a message of 100 bytes? This is an engineering fault. Could you imagine a CMS working in this way? Please fix this devteam. And DO read your self-setup forum!
Title: Roundcube slow
Post by: dialsc on June 10, 2011, 06:01:47 AM
hi,

i had the same problem. i'm running - on gentoo boxes - roundcube 0.5.2-r1. there are also apache 2.2.16 and php 5.3.6.

for me the problem was solved once i disabled the ipv6 USE variable by defining -ipv6 during compile time for php. after i remerged php with this use variable, roundcube's now as fast as one would expect it to be.

mybee this helps.

greez...
Title: Roundcube slow
Post by: spikey on November 03, 2011, 08:23:26 AM
Sorry to awaken such an old thread, but I'm also still having these slow responses time.

I've done reasonable troubleshooting and every point I get to leads to the IMAP process that takes unusually long to get the data from the mailbox.

We've got one host that RC connects to which points to 4 mail servers running in a cluster with Courier-IMAP. I've setup 3 different versions of RC on 3 different servers pointing to our mail host as well as tests servers and get the exact same problem.

While doing a top on the mail server that RC is connecting to, I notice that the IMAP process is using quite a lot of resources when you login to RC. Is this normal? I've also tried 0.6, but found that even this version is doing the same.

I also have tried using IMAP Proxy and even the tweaks in the RC help sections and these don't work either.  I've also set the connection to be standard plain text authentication without TLS and SSL to speed up the connection so as no encryption is being used.

I'd appreciate it if someone has found a solution to this and will share their fix please.

Cheers.
Title: Roundcube slow
Post by: spikey on November 07, 2011, 05:45:48 AM
Quote from: spikey;37172
Sorry to awaken such an old thread, but I'm also still having these slow responses time.

I've done reasonable troubleshooting and every point I get to leads to the IMAP process that takes unusually long to get the data from the mailbox.

We've got one host that RC connects to which points to 4 mail servers running in a cluster with Courier-IMAP. I've setup 3 different versions of RC on 3 different servers pointing to our mail host as well as tests servers and get the exact same problem.

While doing a top on the mail server that RC is connecting to, I notice that the IMAP process is using quite a lot of resources when you login to RC. Is this normal? I've also tried 0.6, but found that even this version is doing the same.

I also have tried using IMAP Proxy and even the tweaks in the RC help sections and these don't work either.  I've also set the connection to be standard plain text authentication without TLS and SSL to speed up the connection so as no encryption is being used.

I'd appreciate it if someone has found a solution to this and will share their fix please.

Cheers.



Ok, I've done some more testing and found the following....

I've used my mailbox on another server which is 2gb in size and copied it over to me test mail server running standard linux users (/home/user/Maildir) and let RC open that mailbox. My one folder contains 18000 emails which RC opens in 2 seconds.

I then remove this user and then add it to a SQL table (using Postfix Admin) and copy my mailbox over to this user's maildir folder. Right there RC takes more than 2 minutes to open that same folder containing 18000 emails.

Any suggestions as to why RC would have issues with SQL users ?
Title: Roundcube slow
Post by: manolocon on December 01, 2011, 04:30:57 AM
Hi, i'am new for this forum. I have this problem when I open roundcube after several days to view messages takes several minutes. You may download automatically?