1

Topic: Slow login to iRedAdmin

==== Required information ====
- iRedMail version: 0.8.3
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: Ubuntu 12.04
- Related log if you're reporting an issue:
====

I am experiencing slow login times recently on my iRedAdminPro panel, times of 25 - 35 seconds and more start to get the norm rather than the exception.
The server is running with 1.5 GB of RAM. It does not seem to run out of RAM. It's a 2P4C server, I would not expect such slow motion from there. Once the admin panel is open it is quick enough, just to log in takes above time.

Any idea what this could be?

Regards
Peter

2

Re: Slow login to iRedAdmin

Do you run script shipped in iRedAdmin-Pro to cleanup old records in Amavisd database? Either with cron job or run it manually.
Script is: iRedAdmin-Pro-[VERSION]/tools/cleanup_amavisd_db.py.

3

Re: Slow login to iRedAdmin

Wow, great - this reduced the login time from 2 minutes down to 4 seconds.
Thanks for the tip, it works great.

4

Re: Slow login to iRedAdmin

Don't forget to run this script in cron job, so that you don't need to execute it manually.

5

Re: Slow login to iRedAdmin

ZhangHuangbin wrote:

Don't forget to run this script in cron job, so that you don't need to execute it manually.

What's the recommended frequency to run the cron job ?

6

Re: Slow login to iRedAdmin

Daily.

7

Re: Slow login to iRedAdmin

Follow up question:

I haven't found any cronjob executing this task on a daily base. Isn't it activated by default after installing iRedMail?

Are there any other scripts which should be run on a daily/weekly base to ensure the system working properly? I have searched the wiki but haven't found anything related.

Thanks!

8

Re: Slow login to iRedAdmin

Hi shrinks,

Please add one manually. You can read top lines in tools/cleanup_amavisd_db.py, it will guide you to add cron job.

9

Re: Slow login to iRedAdmin

Hi,

I added it yesterday and it works fine. Thanks smile