Virtualmin Slow with 1500 users

Hello Pasted from Forum....

Hello

I have been using the fine product Virtualmin for a few years. I recently updated to Virtualmin pro and am enjoying that also.

I have about 30 domains. Server hardware in p4 with 4 gig ram and 4x scsi hdd in Raid 5, server normal cpu load is 10%

To list domans page takes 15 seconds. To list all email in domain (1500) talks 15 seconds. To show a user talks 15 seconds To show user password takes 30 seconds To save new email on the domain with 1500 users takes 35 seconds.

CPU pegs whenever I do these functions.

Is there some setting or a way to speed any of the above up?

Thanks heaps

:-)

Status: 
Closed (fixed)

Comments

How many mailboxes do you have in total, across all domains?

One quick fix to speed up the domain list is to go to System Settings -> Module Config -> User interface settings, and in the "Columns to show" field un-check "User count" and "Alias count".

Hello

I Have about 2000 users in total.

That quick fix helped a bit, Thanks.

It does seem its only the domain with many users that's slow.

Thanks

You might be able to speed that up by disabling the display of mailbox sizes, at System Settings -> Module Config -> User interface settings -> Show mailbox size in users list?

Hello

Thanks for the tip, I have already done that. Adding new email still takes a very long time..

Did you want remote access to have a look? When I add through webmin users its very fast.

Thanks

Rhys :-)

Sure, remote access would be useful ..

Thanks for the remote login.

Could I get SSH access too? It is more useful for debugging .. It looks like port 22 is currently blocked on your system.

Thanks, that worked..

I can see one cause of the slowness - Virtualmin does a test encryption of what it thinks is the plain-text password for each user in the domain, and compares it to the actual encrypted password in /etc/shadow . However, if the password was changed outside of Virtualmin (such as by the passwd command), this will cause the slow MD5 encryption code to be called for each user .. and you have a lot of users like this.

Are passwords on your system changed by some other other than the Virtualmin UI?

Not normally. Perhaps 1% of them, and that was only after the slowness.

That test server is a restored copy from the live server.

Everything else is via Virtualmin.

Would that also explain why it is slow to add a new user (when saving)

Thanks for all your help

:-)

Anyway, I have a fix for this issue .. do you mind if I install it on your system?

Yes, Please do.

This is only a testing server so can we transfer the fix to live after testing?

Thanks again

:-)

Ok, I applied the fix and it seems faster now ..

If you want to apply this fix to your other system, copy over the file /usr/libexec/webmin/virtual-server/virtual-server-lib-funcs.pl and then run /etc/webmin/restart

Hello

That is much better, Thanks :-)

Cool .. I will include this fix in the next Virtualmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.

Hi

I have the same issue with Virtualmin 5 and Centos 6.7

Was the fix released ?

Thanks

roberto

Yes, this fix was released years ago!