Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: playedalive on February 23, 2011, 07:22:32 PM

Title: Roundcube with hmailserver performance
Post by: playedalive on February 23, 2011, 07:22:32 PM
Hi

I am dealing with mailboxes with thousands of messages in each folder. Obviously running  a search against this is slow. VERY SLOW.

Are there any recommendations on how to boost performance. When i run a search on a folder with that many messages i can see the hmail process hitting 99% cpu.

I am indexing the message with a mysql database.
Title: Roundcube with hmailserver performance
Post by: alec on February 24, 2011, 02:20:07 AM
I think, you should ask on hmailserver forum.
Title: Roundcube with hmailserver performance
Post by: rosali on February 25, 2011, 12:55:55 AM
hMailserver is rather resource consuming the more messages you have in an IMAP folder.

Did you enable hMailserver Message Indexing?

Performance (http://www.hmailserver.com/documentation/latest/?page=reference_performance)
Title: Roundcube with hmailserver performance
Post by: playedalive on February 25, 2011, 05:57:12 PM
Yep i have enabled indexing, I ave now installed the latest alpha 5.4 and it has improved performance quite considerably.

Although i notice that when doing a search, roundcube has a 60 second timeout. I watch the imap logs as the search is running and it looks like roundcube stops if it doesn't get a response after 60 seconds. Is there any way to increase this as i cant find it in any of the source files.
Title: Roundcube with hmailserver performance
Post by: SKaero on February 25, 2011, 11:54:59 PM
You can change the value of the imap timeout in /config/main.inc.php with the $rcmail_config['imap_timeout'] option, but its set to 0 (no limit) by default so its probably PHP timing out. You should be able to verify that by checking your error log.
Title: Roundcube with hmailserver performance
Post by: playedalive on February 26, 2011, 05:44:02 PM
thanks, im not able to get to my system right now, would it be this value in php i would need to alter:

PHP: set_time_limit - Manual (http://php.net/manual/en/function.set-time-limit.php)
Title: Roundcube with hmailserver performance
Post by: SKaero on February 27, 2011, 03:38:42 AM
Possibly but more likely it would be max_execution_time.