[mythtv-users] Web interface scalability issue: Video Gallery
Peter Bennett
pb.mythtv at gmail.com
Sun Sep 10 00:48:09 UTC 2023
On 9/9/23 18:11, Paul Harrison wrote:
>
> I made some time to at least get a working backend running again so I
> could test the latest code. For me there are still some long delays
> like when switching to some tabs or if a page refresh is done. I tried
> both Firefox and Chromium browsers both work the same.
>
>
> Using the browser debug tools I found something interesting. More
> often than not one of the requests sent to the backend will result in
> a 10 second wait before it receives any data. I'd be interested to
> know if anyone else can see these 10 second delays.
>
>
> If while viewing one of the WebApp pages you open the debug tools,
> right click and select 'Inspect' in the context menu or press
> Ctrl+Shift+I, click the network tab in the debug window, then click
> refresh or press F5 on the WebApp window. You should see the list of
> requests update. Look for any with a tortoise symbol in the Filename
> column, those are the requests that the browser thinks where slow. If
> you click one of them you can see the timings. For me the slowest
> requests always spend just over 10 seconds waiting. The file that is
> slow isn't always the same one it seems to be random which one is
> slow, although I think all so far have been in the root directory like
> main.js in the linked screenshot.
>
> https://mythqml.net/img/Screenshots/WebApp-timings.jpg
>
>
> Paul H.
>
I have never noticed 10 second delays, and I don't think anybody else
has. Somebody would have let me know about the slowdown.
The longest timing in the debugger network tab is the GetBackendStatus
at 1.46 sec, followed by GetProgramGuide, at 743 ms. GetUpcomingList is
236 ms if you select "Show All Statuses".
I don't see a tortoise. Firefox also does not give me any slow responses.
Channel Editor takes about 5 seconds to load, but that is because it is
loading hundreds of icons, and getting a 404 error for most of them as
they are missing on my system.
I use Chrome for developing and testing, but I have tested on Firefox also.
As for Jan's report of slowness, it turned out he is running MythTV V33
so he is not using the web app, he is using the incomplete web frontend.
I suspect something else is going on in your system to cause the 10
second delays.
Are you running the browser on the same machine as the backend?
Do you get 10 second delays when running the API calls through curl or
on a browser?
Are you using SSL? I am not and probably 99.9% of users are not.
I have installed a recent master on my production system, and I use the
web app perfectly successfully on that, no delays.
Here are my timimgs for main.js: 10 ms for local machine and 51 ms for
remote over wifi. Nowhere near 10 seconds.
https://imgur.com/a/3I9iUFN
Peter
More information about the mythtv-users
mailing list