Author Topic: Roundcube Very SLOW  (Read 21733 times)

Offline technologicrepair

  • Newbie
  • *
  • Posts: 4
Roundcube Very SLOW
« 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?

Offline Mich312

  • Newbie
  • *
  • Posts: 3
Roundcube Very SLOW
« Reply #1 on: April 11, 2011, 03:24:56 PM »
I have the same thing since a few weeks. Very problematic

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,533
    • http://SKaero.com/
Roundcube Very SLOW
« Reply #2 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.

Offline technologicrepair

  • Newbie
  • *
  • Posts: 4
Roundcube Very SLOW
« Reply #3 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....

Offline alec

  • Hero Member
  • *****
  • Posts: 1,149
Roundcube Very SLOW
« Reply #4 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.

Offline technologicrepair

  • Newbie
  • *
  • Posts: 4
Roundcube Very SLOW
« Reply #5 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?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Roundcube Very SLOW
« Reply #6 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.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline technologicrepair

  • Newbie
  • *
  • Posts: 4
Roundcube Very SLOW
« Reply #7 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!

Offline technologicrepair

  • Newbie
  • *
  • Posts: 4
Roundcube Very SLOW
« Reply #8 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!

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Roundcube Very SLOW
« Reply #9 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.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline alec

  • Hero Member
  • *****
  • Posts: 1,149
Roundcube Very SLOW
« Reply #10 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.

Offline talvins

  • Jr. Member
  • **
  • Posts: 26
Roundcube Very SLOW
« Reply #11 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.

Offline Drakon

  • Jr. Member
  • **
  • Posts: 45
Roundcube Very SLOW
« Reply #12 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,

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Roundcube Very SLOW
« Reply #13 on: June 28, 2011, 05:24:30 AM »
Please do not post duplicates!
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline eder

  • Newbie
  • *
  • Posts: 1
Re: Roundcube Very SLOW
« Reply #14 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.