UI extremely slow

I have the problem that the UI is EXTREMELY slow, every page propably needs about half a minute to load. Server ressources are 4 cores @ 2.2 ghz and 16gb ram

Status: 
Closed (cannot reproduce)

Comments

Howdy -- thanks for contacting us!

What output do you see if you run the command "uptime" on your server?

00:39:34 up 8:15, 1 user, load average: 0.01, 0.02, 0.00 this

Hmm, yeah I'm not seeing any issues there.

Are you able to create a new Virtual Server? I'm curious how the performance is of any websites you setup, compared to what you're seeing in Virtualmin.

I'm also curious if it's any dfferent if you were to go into Webmin -> Webmin -> Change Language and Theme, and set the theme to the Virtualmin Framed Theme (assuming that you're currently using the default of Authentic).

It has worsened and now im not even able to connect at all to the virtualmin interface. it always gets stuck on the tls handshake

Had you already created some domains within Virtualmin, or did this issue start immediately after installing Virtualmin?

Also, can you share the URL to your Webmin/Virtualmin install?

Is this a dedicated server, or a VPS? If it's a VPS, what kind of VPS is it?

On this install, it started immediatly, i had some other installs where it started a few days or hours after. Only on one of them i installed a domain at all when it was still working, a few days after i checked again and it also had that problem. Im using a VPN from Contabo with 6 cores and 16gb ram. Right now i also have the problem that i cant connect at all, and as i used the htop command i noticed that there is a task running called pwd(since like 90hrs). Is that in any way virtualmin related? This task exist twice, and both of them take up like 30 percent of cpu power.

It's tough to say if that process if Webmin/Virtualmin related, you could use "ps auxf" to determine that.

However, I'd also be curious if running "service webmin restart" makes a difference.

root 6965 300 0.0 70500 3816 ? Ssl Dec18 5658:39 pwd this is what i get. service webmin restart didnt make any difference, should it post something to the console? because it didnt in my case

We'd need to see the whole "ps" output in order to determine the relationship of that pwd command to Webmin.

The "uptime" command in Comment #1 above didn't show a high CPU load, but it's possible something else is going on that we'll see in that process list.

You could also take peek at the logs in /var/webmin... in particular the miniserv.error, but maybe even the miniserv.log could help.

USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         2  0.0  0.0      0     0 ?        S    Dec17   0:00 [kthreadd]
root         3  1.3  0.0      0     0 ?        S    Dec17  39:27  \_ [ksoftirqd/0]
root         5  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/0:0H]
root         7  0.4  0.0      0     0 ?        S    Dec17  13:25  \_ [rcu_sched]
root         8  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [rcu_bh]
root         9  0.0  0.0      0     0 ?        S    Dec17   0:02  \_ [migration/0]
root        10  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [lru-add-drain]
root        11  0.0  0.0      0     0 ?        S    Dec17   0:01  \_ [watchdog/0]
root        12  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/0]
root        13  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/1]
root        14  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [watchdog/1]
root        15  0.0  0.0      0     0 ?        S    Dec17   0:01  \_ [migration/1]
root        16  0.6  0.0      0     0 ?        S    Dec17  18:25  \_ [ksoftirqd/1]
root        18  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/1:0H]
root        19  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/2]
root        20  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [watchdog/2]
root        21  0.0  0.0      0     0 ?        S    Dec17   0:02  \_ [migration/2]
root        22  0.6  0.0      0     0 ?        S    Dec17  18:11  \_ [ksoftirqd/2]
root        24  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/2:0H]
root        25  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/3]
root        26  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [watchdog/3]
root        27  0.0  0.0      0     0 ?        S    Dec17   0:02  \_ [migration/3]
root        28  0.6  0.0      0     0 ?        S    Dec17  17:53  \_ [ksoftirqd/3]
root        30  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/3:0H]
root        31  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/4]
root        32  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [watchdog/4]
root        33  0.0  0.0      0     0 ?        S    Dec17   0:01  \_ [migration/4]
root        34  0.6  0.0      0     0 ?        S    Dec17  17:49  \_ [ksoftirqd/4]
root        36  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/4:0H]
root        37  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [cpuhp/5]
root        38  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [watchdog/5]
root        39  0.0  0.0      0     0 ?        S    Dec17   0:01  \_ [migration/5]
root        40  0.6  0.0      0     0 ?        S    Dec17  17:40  \_ [ksoftirqd/5]
root        42  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/5:0H]
root        43  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [kdevtmpfs]
root        44  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [netns]
root        45  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [khungtaskd]
root        46  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [oom_reaper]
root        47  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [writeback]
root        48  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [kcompactd0]
root        50  0.0  0.0      0     0 ?        SN   Dec17   0:00  \_ [ksmd]
root        51  0.0  0.0      0     0 ?        SN   Dec17   0:06  \_ [khugepaged]
root        52  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [crypto]
root        53  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kintegrityd]
root        54  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root        55  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kblockd]
root        56  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [devfreq_wq]
root        57  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [watchdogd]
root        59  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [kswapd0]
root        60  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [vmstat]
root        72  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kthrotld]
root        73  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [ipv6_addrconf]
root       117  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       118  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       119  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       120  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       121  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       122  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       123  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       124  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       127  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [ata_sff]
root       155  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [scsi_eh_0]
root       156  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [scsi_tmf_0]
root       157  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [scsi_eh_1]
root       158  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [scsi_tmf_1]
root       160  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [scsi_eh_2]
root       161  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [scsi_tmf_2]
root       163  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [bioset]
root       420  0.0  0.0      0     0 ?        S<   Dec17   0:05  \_ [kworker/0:1H]
root       421  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/3:1H]
root       442  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/u13:0]
root       453  0.0  0.0      0     0 ?        S    Dec17   0:15  \_ [jbd2/sda2-8]
root       454  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [ext4-rsv-conver]
root       475  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/4:1H]
root       482  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/1:1H]
root       487  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/2:1H]
root       490  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [kauditd]
root       491  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [kworker/5:1H]
root       591  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [ttm_swap]
root       673  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [edac-poller]
root       686  0.0  0.0      0     0 ?        S    Dec17   0:00  \_ [jbd2/sda1-8]
root       687  0.0  0.0      0     0 ?        S<   Dec17   0:00  \_ [ext4-rsv-conver]
root     27779  0.0  0.0      0     0 ?        S    11:09   0:01  \_ [kworker/1:0]
root      9205  0.0  0.0      0     0 ?        S    12:09   0:01  \_ [kworker/4:1]
root     13526  0.0  0.0      0     0 ?        S    12:26   0:01  \_ [kworker/u12:2]
root     16621  0.0  0.0      0     0 ?        S    12:39   0:00  \_ [kworker/3:1]
root     12092  0.0  0.0      0     0 ?        S    14:39   0:00  \_ [kworker/4:2]
root     24407  0.0  0.0      0     0 ?        S    15:32   0:00  \_ [kworker/2:1]
root     26018  0.0  0.0      0     0 ?        S    15:39   0:01  \_ [kworker/0:1]
root      4395  0.0  0.0      0     0 ?        S    16:26   0:00  \_ [kworker/0:0]
root      4397  0.0  0.0      0     0 ?        S    16:26   0:00  \_ [kworker/2:3]
root      7489  0.0  0.0      0     0 ?        S    16:39   0:00  \_ [kworker/3:0]
root     10301  0.0  0.0      0     0 ?        S    16:51   0:00  \_ [kworker/u12:0]
root     10352  0.4  0.0      0     0 ?        S    16:51   0:02  \_ [kworker/5:2]
root     10353  0.0  0.0      0     0 ?        S    16:51   0:00  \_ [kworker/1:1]
root     10571  0.0  0.0      0     0 ?        S    16:52   0:00  \_ [kworker/5:3]
root     12413  0.0  0.0      0     0 ?        S    17:00   0:00  \_ [kworker/4:0]
root     12416  0.0  0.0      0     0 ?        S    17:00   0:00  \_ [kworker/1:2]
root         1  0.0  0.0 204692  7080 ?        Ss   Dec17   1:32 /sbin/init
root       479  0.0  0.1  95208 29844 ?        Ss   Dec17   1:24 /lib/systemd/systemd-journald
root       499  0.0  0.0  46316  4372 ?        Ss   Dec17   0:00 /lib/systemd/systemd-udevd
systemd+   715  0.0  0.0 127288  4188 ?        Ssl  Dec17   0:00 /lib/systemd/systemd-timesyncd
message+   777  0.0  0.0  45236  3908 ?        Ss   Dec17   0:08 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root       780  0.0  0.0   4216  1300 ?        Ss   Dec17   0:00 /usr/sbin/acpid
root       781  0.0  0.0  46476  4816 ?        Ss   Dec17   0:06 /lib/systemd/systemd-logind
root       782  0.0  0.0  29664  2724 ?        Ss   Dec17   0:02 /usr/sbin/cron -f
root       784  0.0  0.0  14536  1724 tty1     Ss+  Dec17   0:00 /sbin/agetty --noclear tty1 linux
root       790  0.0  0.0  69944  6340 ?        Ss   Dec17   0:03 /usr/sbin/sshd -D
root     12325  0.0  0.0  95204  6692 ?        Ss   17:00   0:00  \_ sshd: root@pts/1
root     12376  0.0  0.0  19872  3716 pts/1    Ss   17:00   0:00      \_ -bash
root     12556  0.0  0.0  38456  3352 pts/1    R+   17:01   0:00          \_ ps auxf
root      1116  0.0  0.0  56420  6020 ?        Ss   Dec17   0:00 /lib/systemd/systemd --user
root      1117  0.0  0.0  82344  1496 ?        S    Dec17   0:00  \_ (sd-pam)
root     26066  0.0  0.0  91608  2960 ?        SLs  Dec18   0:00  \_ /usr/bin/gpg-agent --supervised
root     11542  0.0  0.0  81188  4664 ?        Ss   Dec17   0:04 /usr/lib/postfix/sbin/master -w
postfix  13955  0.0  0.0  83300  6876 ?        S    Dec17   0:00  \_ qmgr -l -t unix -u
postfix  14078  0.0  0.0  87484  8636 ?        S    Dec17   0:00  \_ tlsmgr -l -t unix -u -c
postfix   7303  0.0  0.0  83252  6744 ?        S    16:38   0:00  \_ pickup -l -t unix -u -c
root     11594  0.0  0.0 250116  3552 ?        Ssl  Dec17   0:33 /usr/sbin/rsyslogd -n
clamav   31352  0.0  0.1 152520 27068 ?        Ss   Dec17   0:58 /usr/bin/freshclam -d --foreground=true
postgrey  1161  0.0  0.1  76144 21240 ?        Ss   Dec17   0:00 postgrey --pidfile=/var/run/postgrey.pid --daemonize --inet=10023
root      2353  0.0  0.1 258804 29324 ?        Ss   Dec17   0:15 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
www-data  2354  0.0  0.0 258804  6944 ?        S    Dec17   0:00  \_ php-fpm: pool www
www-data  2355  0.0  0.0 258804  6944 ?        S    Dec17   0:00  \_ php-fpm: pool www
root      6399  0.0  0.2 348804 35236 ?        Ss   Dec17   0:12 /usr/sbin/apache2 -k start
www-data 26567  0.0  0.0 186612  5456 ?        S    06:25   0:01  \_ /usr/sbin/apache2 -k start
www-data 26568  0.0  0.0 349328 11468 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data 26569  0.0  0.0 349328 11396 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data 26570  0.0  0.0 349328 11468 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data 26571  0.0  0.0 349328 11420 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data 26572  0.0  0.0 348884 11096 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data 26619  0.0  0.0 348884 11096 ?        S    06:25   0:00  \_ /usr/sbin/apache2 -k start
www-data  9075  0.0  0.0 349328 11400 ?        S    07:29   0:00  \_ /usr/sbin/apache2 -k start
www-data 22642  0.0  0.0 349328 11468 ?        S    08:26   0:00  \_ /usr/sbin/apache2 -k start
www-data 22700  0.0  0.0 349328 11400 ?        S    08:27   0:00  \_ /usr/sbin/apache2 -k start
root      6712  0.0  0.2 201840 34976 ?        Ssl  Dec17   0:05 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
debian-+  6957  0.0  0.0  91608   668 ?        Ss   Dec17   0:00 gpg-agent --homedir /var/lib/spamassassin/sa-update-keys --use-standard-socket --daemon
root      8601  0.0  0.0  18124  2532 ?        Ss   Dec17   0:00 /usr/sbin/dovecot
dovecot   8604  0.0  0.0   9492  1056 ?        S    Dec17   0:00  \_ dovecot/anvil
root      8605  0.0  0.0   9624  2308 ?        S    Dec17   0:00  \_ dovecot/log
root     10069  0.0  0.1 585032 31768 ?        Ssl  Dec17   0:08 /usr/sbin/named -c /etc/bind/named.conf
mysql    10579  0.1  0.4 686568 76700 ?        Ssl  Dec17   5:16 /usr/sbin/mysqld
proftpd  11504  0.0  0.0 124724  4232 ?        Ss   Dec17   0:02 proftpd: (accepting connections)
root     12395  0.0  0.1  79120 22704 ?        Ss   Dec17   0:04 /usr/bin/perl /usr/share/usermin/miniserv.pl /etc/usermin/miniserv.conf
root     13705  0.2  0.1 1182568 23640 ?       Sl   Dec17   5:47 /usr/bin/python3 /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fai
root     23793  0.8  0.1 1807840 23184 ?       Sl   Dec17  19:59 ./ts3server
root      6965  300  0.0  70500  3816 ?        Ssl  Dec18 5658:39 pwd
root     12432  0.0  0.5 147648 84888 ?        Ss   17:00   0:00 /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
root     12478  0.0  0.5 147648 86724 ?        S    17:00   0:00  \_ /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
root     12479  0.0  0.5 147648 86560 ?        S    17:00   0:00  \_ /usr/bin/perl /usr/share/webmin/miniserv.pl /etc/webmin/miniserv.conf
root     12546  0.0  0.0   1464  1044 ?        Ss   17:01   0:00 pwd
root     12552  0.0  0.0   1464  1040 ?        Ss   17:01   0:00 cat resolv.conf
root     12553  0.0  0.0   1464  1040 ?        Ss   17:01   0:00 cat resolv.conf
root     12554  0.0  0.0   1464  1040 ?        Ss   17:01   0:00 sleep 1
root     12555  0.0  0.0   1464  1040 ?        Ss   17:01   0:00 echo "find"

this is the whole output

ok this didnt go well... it just put it all in one line... copied it in sorted in lines...

It's okay, hitting the "Edit" button, the information is visible as you intended.

I see a few processes running that don't appear to have any parent processes. That pwd command, along with two "cat /etc/resolv.conf" commands, have both been running for days without any clear parent process.

That's pretty unusual!

I think I'd recommend killing those processes, and seeing if that makes a difference. While your CPU seems normal, those processes could be using up a lot of disk IO.

One other thought, are any of your disks/volumes network based volumes? As those can sometimes cause unusual issues. What is the output of the command "mount"?

It happened to me a few times and in my case it was a DNS issue (every time). On my Intranet I had all sort of configurations, with DNS/LDAP pinned to a real domain on the internet, cloudmin replicas pinned to a private subnet, etc, and ALSO my routers' static IP was stolen by another PC on the corporate network.. so on and on.. I would positively ping all FQDN and see if all respond as they should.. Sometimes from a ping -c4 two responds and the rest is dropped, but you need to try a few times to see it. In each case the webmin dashboard took forever to load.

I also find it helpful when I configure each client to make sure I see EXACTLY what I need to see at the System Hostname: if I do not see "hostname.domain.tdl(xxx.xxx.xxx.xxx)" I know I changed something I should not have.

I cannot remember the system load, but that maybe due to a wide variety of issues while network connection loss is due to only a few. The two not necessarily be related.

The pwd process isnt any problem anymore, now its just that i still have that tls handshake problem. i tried connecting in the browser without a given port, there i got the error message SSL_ERROR_RX_RECORD_TOO_LONG. maybe this can help?

We can certainly help with that SSL issue, though that sounds different from the above.

If the UI issue is okay now, what we can do is mark this as resolved, and then could you open a new request for the SSL issue?

Thanks!

i really dont know if th eui issue is still a problem i cant really acess the UI so...

Oh I see, I was thinking you meant your websites were giving the "SSL_ERROR_RX_RECORD_TOO_LONG" error.

You're saying that's showing up in Webmin/Virtualmin?

Is it possible to share the URL/domain for your Webmin installation so that we can see the error?

I am pretty confident that a command:

ping -c4 xxx.xxx.xxx.xxx

executed about a dozen times would yield some results. Use a well-known IP address as IPs are not cached anywhere - DNS like www.mygreatwebsite.com is cached all over the internet.

@honesta you mean my servers ip or a random ip executed on my server?

ok so.... i just did something you should do right at the beginning... open it in a different browser... in internet explorer it seems to work perfectly... at least i can log in... its still hella slow. before that i tried firefox(on the latest update)

but for the firefox issue i am going to open a different issue

it is loading for like half an hour now... still nothing. But i was able to log in xD

You can ping any well known IP address like 8.8.8.8, then you can ping by DNS like google.com.

A few years back when I was learning about DNS I setup a server at home with the .xyz tld, not realizing this is in actual use today on the internet. I thought it was non-valid like .local or .whatever. Then I purchased the real domain when I realized it was available - but by then a router must have blacklisted it because I could not reach it from home - from everywhere else yes.. not from home. I called support a few times, but they could not help: the router that was blocking it was not under their control. At work where they use a different ISP there was no issue. From home i could only reach the server by IP.

Ever since I try to make sure I know the network is fully functional before I suspect anything else.. It would help is somehow you could do the same.

nope, does the same with the ip... i will ask one of my buddys tho if it works on his network...

ok he actually has no problems... gotta look for teh issue in my network

he uses chrome tho... also works if i use chrome... well gonna upgrade the other issue