loading webmail interfaces really slow

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
Hi,

Some accounts have webmail enabled and can be accessed using
https://webmail.my-test-site.com but after login(which is fast) it takes a long time to load horde or roundcube.

Can I speed up the loading time of those interfaces? Maybe buy more ram or CPUs on the VPS? The websites are pretty fast

Here are some times:
accessing the login: https://webmail.my-test-site.ca/ is instant
login successful takes 6-10 seconds
loading hoarde is 12-15 seconds

Note: the secure certificate is not valid, maybe buying a valid one will make it faster


Thank you
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

A signed SSL certificate is not likely to improve the load time. You mentioned this is a VPS. Is your provider able to temporarily increase the CPU/Memory available to your VPS so you can verify if it's why Horde and Roundcube are loading slower than you expect?

Thank you.
 

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
Looks like we need more RAM

top – 10:45:06 up 19:56, 1 user, load average: 0.05, 0.02, 0.00

Tasks: 164 total, 1 running, 163 sleeping, 0 stopped, 0 zombie

Cpu0 : 0.0%us, 0.0%sy, 0.0%ni, 98.0%id, 0.0%wa, 0.0%hi, 0.0%si, 2.0%st

Cpu1 : 0.0%us, 0.0%sy, 0.0%ni, 97.5%id, 0.0%wa, 0.0%hi, 0.0%si, 2.5%st

Mem: 2045172k total, 1990016k used, 55156k free, 43000k buffers

Swap: 1048572k total, 232000k used, 816572k free, 1115744k cached
 

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
So we doubled the RAM but it still takes 12 seconds from when I click Horde or RoundeCube until the interface is loaded. Logout takes 6 seconds.

While I did the test I ran top and the CPUs are mostly 95% idle and RAM is
Mem: 4043496k total, 1759904k used, 2283592k free, 25996k buffers

While it feels faster I don't think RAM or CPU are the problem

Any other ideas?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello,

What version of cPanel is installed on your system? Have you considered switching Roundcube to SQLite to see if you notice an improvement with performance?

Code:
/usr/local/cpanel/scripts/convert_roundcube_mysql2sqlite
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
I haven't considered switching(not sure I will), currently running on MariaDb 10
You might see an improvement with load times by switching Roundcube to SQLite, as reported in previous threads.

Thank you.
 

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
Not sure it will help.
I have both RoundCube and Horde running and they are both slow. RoundCube seems faster by 2 3 seconds. I think it's something else.

Would changing RoundCube to sqllite break Horde?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Would changing RoundCube to sqllite break Horde?
No, it has no effect on Horde. However, note that Horde uses SQLite in cPanel version 11.50.

Thank you.
 

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
Does this have something to do with the amount of filtering done using whitelist/blacklist lists?
Maybe there is a setting I can reduce the list. Or can I disable something to see if it makes a difference?

Thank you
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Filter rules should not decrease the load time for your webmail applications. Typically, it's either a very large inbox, lack of CPU/Memory, or MySQL performance issues that result in webmail applications loading slowly.

Thank you.
 

stefanbc

Well-Known Member
Apr 13, 2015
52
0
6
toronto
cPanel Access Level
Root Administrator
Hi,

The email account I test with has one email in it so I am not sure what it could be. Maybe MySQL because only half of the RAM is used and CPUs are 95% idle most of the time.

I will try to see if MySQL is the problem, any ideas where to start?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
I will try to see if MySQL is the problem, any ideas where to start?
There's really no downside to converting Roundcube to SQLite, however you may want to run a MySQL tuner and see if there are any performance suggestions.

Thank you.
 
Thread starter Similar threads Forum Replies Date
H Email 5
H Email 5
T Email 18
E Email 8
R Email 5