Roundcube Community Forum

Release Support => Pending Issues => Topic started by: technologicrepair on April 11, 2011, 02:27:06 PM

Title: Roundcube Very SLOW
Post by: technologicrepair on April 11, 2011, 02:27:06 PM
Running IIS 7.5; PHP 5.2.13; MySQL 5.5.5-m3
hMailServer 5.3.2-B1769

When I login to Roundcube as a user with a small inbox, it loads relatively quick.
When I login to roundcube with a user who has 10,540 emails, it takes approximately 60 seconds before the user will be able to view their mail.
Searching takes 1 - 2 minutes; changing folders takes another 60 seconds....
Everything is time consuming for the user when trying to interact with their large mailbox.

Why is this and how do I go about making it load faster?
Title: Roundcube Very SLOW
Post by: Mich312 on April 11, 2011, 03:24:56 PM
I have the same thing since a few weeks. Very problematic
Title: Roundcube Very SLOW
Post by: SKaero on April 11, 2011, 06:38:46 PM
You can check out the RoundCube Performance Tuning: http://trac.roundcube.net/wiki/Howto_Performance but it sounds like your having a problem with the mail server, you could enable imap_debug and check the logs to verify.
Title: Roundcube Very SLOW
Post by: technologicrepair on April 11, 2011, 07:28:13 PM
If you wouldn't mind - I have attached my imap logs - could you take a look and see what the problem might be?
I'm not sure what I should be looking for....
Title: Roundcube Very SLOW
Post by: alec on April 12, 2011, 02:16:45 AM
As you can see in the log, SORT response tooks ca.15 seconds. So, this is slow IMAP server. You can disable sorting (set sorting column to None) to make the listing faster.
Title: Roundcube Very SLOW
Post by: technologicrepair on April 12, 2011, 02:52:46 PM
I set $rcmail_config['message_sort_col'] = 'None';
However, when looking at the imap logs, it is still sorting - and there is still a 15 second lag while it runs through and builds the sorted array.
Any ideas?
Title: Roundcube Very SLOW
Post by: rosali on April 12, 2011, 05:39:46 PM
You can disable SORT in hMailserver. However, I have hMailserver running with SORT extension and I don't experience long response times even on hugh mailboxes. Did you enable indexing in hMailserver? If you have still performance issues, I suggest to ask for support at hMailserver support forum. I'm quite sure, this is no Roundcube issue.
Title: Roundcube Very SLOW
Post by: technologicrepair on April 12, 2011, 06:12:46 PM
I did not have indexing enabled.  I have turned it on and it is now indexing 31,000 emails.....  We'll see if this helps.  Thanks for the tip!
Title: Roundcube Very SLOW
Post by: technologicrepair on April 12, 2011, 06:28:56 PM
Looks like enabling indexing solved the problem.
If only I knew it was disabled months ago!
Thanks so much!
Title: Roundcube Very SLOW
Post by: rosali on April 12, 2011, 06:31:24 PM
Your welcome! I suggest to set "threading" worker thread priority to highest if you don't have lots of other services running on the hMailserver box.
Title: Roundcube Very SLOW
Post by: alec on April 13, 2011, 02:45:16 AM
BTW, $rcmail_config['message_sort_col'] = 'None'; will not work, you should use $rcmail_config['message_sort_col'] = ''; I was talking about using UI to set the sorting.
Title: Roundcube Very SLOW
Post by: talvins on April 15, 2011, 02:05:55 PM
Same problem for me but on Apache2 / Courier.
Roundcube, courier and maildirs is on the same machine.
Very very slow on folder (cur) containing > 5000 messages.
Title: Roundcube Very SLOW
Post by: Drakon on June 28, 2011, 05:15:33 AM
We have the same problem. We have tunned with imapproxy and others. When we click on a folder it takes a long time to open, more than 5 seconds if this contains more than 3000 o 5000 e-mails.

Quote from: talvins;34310
Same problem for me but on Apache2 / Courier.
Roundcube, courier and maildirs is on the same machine.
Very very slow on folder (cur) containing > 5000 messages.


Regards,
Title: Roundcube Very SLOW
Post by: rosali on June 28, 2011, 05:24:30 AM
Please do not post duplicates!
Title: Re: Roundcube Very SLOW
Post by: eder on July 26, 2012, 05:21:11 PM
Hello everyone,

I'm experiencing the same performance problem on Roundcube with large mailboxes. I've already set the following parameters on main.inc.php:

$rcmail_config['dont_override'] = array('message_sort_col', 'message_sort_order');
$rcmail_config['message_sort_col'] = '';

So that the user can't change the sorting configurations. But when he clicks on the header of each column, the sorting command is still sent to server, making him to wait for a long period until an error is shown.

Is there a way to disable completely the sorting option for the user on Roundcube?

PS: If I'm posting it in the wrong place, I apologize - please let me know.