Custom commands loading quite slowly on Chromium based browsers

SYSTEM INFORMATION
OS type and version Redhat Enterprise Linux 9.5
Webmin version 2.402

Hi everyone,

I am managing the migration from a old version of Webmin to the latest one.
This Webmin instead of being used to control the machine on which it’s installed, it is used as some kind of portal from which to run a collection of .sh scripts from the Custom Commands page.
After populating the new Webmin with the same commands that are being used from the old version, I have encountered a performance issue.

The problem is this: if I try to load the Custom Commands page from a chromium web browser (Chrome or Edge), the browser hangs for up to a minute, while also displaying a warning that the page is frozen, until it succeeds.
If I try to load the same page from Firefox, the loading is instantaneous.
This occurs on Windows on Chrome and Edge and also on Linux on Chrome.

I also tried to tail /var/webmin/webmin.log and I haven’t seen any warning or difference between loading from Firefox or Chrome.

Does anyone have any clue of what could be the issue here?

Thank you.

Loads OK for me on Opera and Chromium, but, I have no custom commands so I don’t know if that makes a difference.

Also try this log:
/var/webmin/miniserv.log
or
/var/webmin/miniserv.error

My browsers are on Debian 13. Not sure if this could be a Windows only thing.

Thank you for your answer.

Also try this log:
/var/webmin/miniserv.log
or
/var/webmin/miniserv.error

Neither those logs show anything remarkable.

Not sure if this could be a Windows only thing.

Definitely not, the same behaviour occurs on my Fedora 42 machine, only Firefox works fine.

but, I have no custom commands so I don’t know if that makes a difference.

Yeah the rest works fine regardless of the browser I’m using.

This is on Chrome. Still normal. I wouldn’t think having some data in there to display should make a difference based on browser though.

Look in the browser web developer console for errors or clues about what it’s doing. Use the network performance tab to see what URL is taking so long.

I don’t think anyone else has reported similar problems, so it may be specific to something about your server or client environment…maybe a browser extension? Try it in a private window with all extensions disabled to see if the behavior persists.

I use Chromium, and notice no issues – maybe try CTRL SHIFT DEL and clear your cache. Or, I have found over 50gig of “junk” on my computers before, all cleaned away using BleachBit… “temp” files can slow down apps.

Just a note. At one point another user and myself had some issue about getting something to load. It stopped after I switched browsers. I kinda, sorta THINK I remember the code did need some cleaning. I think we need at least one other person with that page actually populated to weigh in.

Yes at the beginning when the list was empty it loaded fine, but the more I added commands the more it slowed down and now it almost takes a minute to load.

The old webmin with the same number of commands loads instantly.

This sounds to me like a “fringe” functionality that might have not been tested during the development of the product over the years, but of course I might be wrong.

Good point, unfortunately from the network tab I don’t see any difference.

This is from Chrome

Firefox shows the same metrics (I can´t embed more than one picture)

I suppose that this issue is not related to any network issue, but maybe related to how Chromium based browsers render the page?
I am just guessing here.

I don’t think anyone else has reported similar problems

Maybe we are the only ones with ~80 custom commands loaded on Webmin :grinning_face_with_smiling_eyes:

I also think that might be the problem here (that seems to me to be excessive). Were “Custom Commands” ever intended to be used that aggressively?

no problem here … but then again Chromium has also gone through some serious updates recently and we are also having to pick up the pieces (they are getting as bad as Microsoft at implementing unwanted bloatware)

Were “Custom Commands” ever intended to be used that aggressively?

I suppose not.

Historically speaking the custom commands page is being used here as some kind of portal to start some business-related procedures that are handled through bash scripts.
This clearly goes against the real main purpose of Webmin (i.e. handling the OS on which it’s installed) but I guess the previous sysdadmins found out that it worked well enough to satisfy their purpose.

In the meantime we could simply use the new webmin with Firefox and if you want you might look into this.

Shall I open a bug report?

it seems like it does need @staff to at least comment on it - though i think it will get a lower priority atm due to it being a bit esoteric. I cannot speak for them but I guess they are currently busy firefighting recent Webmin/Virtualmin updates.

if you have a work around it is at least a way

is there no way of reducing/grouping/re-working/re-organising the number of scripts?

though i think it will get a lower priority atm due to it being a bit esoteric

That’s understandable.

is there no way of reducing/grouping/re-working/re-organising the number of scripts?

I don’t think it would be feasible.

Does this issue happen in incognito mode when all browser extensions are disabled?

If the issue still happens in an incognito tab with all extensions turned off, zip up /etc/webmin/custom and send it to me in a private message. I don’t need the actual scripts to be clear.

Does this issue happen in incognito mode when all browser extensions are disabled?

Yes.

zip up /etc/webmin/custom and send it to me in a private message.

I need to discuss this with my colleagues, I don’t think that the folder contains anything that could be considered a data breach (aside from the .acl files) but I need to be sure.

Sure, no problem, take your time.

I sent you the private message, thank you for taking on this issue!

I see a lag of about 2-3 seconds when rendering the page with all your custom commands listed. How slow is it for you?

I see a lag of about 2-3 seconds

Only 3 seconds? On Chrome? That would be desirable.

On my side it takes ~30 seconds for the page to load, with the browser opening an alert window asking the user if they would like to kill the page or to keep waiting.

To be honest, even 3 seconds isn’t acceptable. There’s something wrong going on. I will update this ticket with progress later today. Thanks for the data provided!

3 Likes