Submitted by equis on Sun, 11/22/2009 - 21:15
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
Submitted by JamieCameron on Sun, 11/22/2009 - 23:08 Comment #1
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".
Submitted by rhys on Mon, 11/23/2009 - 03:23 Comment #2
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
Submitted by JamieCameron on Mon, 11/23/2009 - 15:47 Comment #3
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?
Submitted by equis on Mon, 11/23/2009 - 17:16 Comment #4
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 :-)
Submitted by JamieCameron on Mon, 11/23/2009 - 17:19 Comment #5
Sure, remote access would be useful ..
Submitted by JamieCameron on Tue, 11/24/2009 - 17:38 Comment #6
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.
Submitted by equis on Wed, 11/25/2009 - 19:45 Comment #7
Hello
Try now please :-)
Submitted by JamieCameron on Thu, 11/26/2009 - 02:39 Comment #8
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?
Submitted by equis on Thu, 11/26/2009 - 17:00 Comment #9
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
:-)
Submitted by JamieCameron on Thu, 11/26/2009 - 19:34 Comment #10
Anyway, I have a fix for this issue .. do you mind if I install it on your system?
Submitted by equis on Sun, 11/29/2009 - 21:13 Comment #11
Yes, Please do.
This is only a testing server so can we transfer the fix to live after testing?
Thanks again
:-)
Submitted by JamieCameron on Mon, 11/30/2009 - 00:55 Comment #12
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
Submitted by equis on Mon, 11/30/2009 - 16:23 Comment #13
Hello
That is much better, Thanks :-)
Submitted by JamieCameron on Mon, 11/30/2009 - 16:42 Comment #14
Cool .. I will include this fix in the next Virtualmin release.
Submitted by Issues on Tue, 12/15/2009 - 09:21 Comment #15
Automatically closed -- issue fixed for 2 weeks with no activity.
Submitted by rpereyra on Wed, 02/10/2016 - 15:04 Comment #16
Hi
I have the same issue with Virtualmin 5 and Centos 6.7
Was the fix released ?
Thanks
roberto
Submitted by JamieCameron on Wed, 02/10/2016 - 17:35 Comment #17
Yes, this fix was released years ago!