Univention Bugzilla – Bug 52234
The provider-portal initially loads slowly, but is then responsive
Last modified: 2021-09-22 09:51:36 CEST
# Observed behavior After logging in the provider-portal can take a significant amount of time in order to display the list with all applications. The command line tool is also affected and a single call can take up to several minutes, depending on how many applications are displayed.
# First investigation A significant amount of time is used to either process, load or parse some JSON-file and it appears to be loaded multiple times. > As it turns out it loads exactly as many times as we have sub-versions in UCS, so probably one JSON per UCS-Version. > The JSON-file contains the list with all apps for a version of UCS with application icons and screenshots, which take up the most significant part of the the file. They are base64 encoded and the conversion may or may not be a performance bottleneck on the server side (to be investigated) # Possible fixes > The icons are rarely displayed in the size they are transmitted within the JSON file and could be down-scaled. > The JSON-file could be cached on the server as well as on the client side. As it changes slowly and mostly in interaction with the user a cache validation strategy should not be too hard to implement.
Created attachment 10528 [details] the json file for the admin-dashboard alone for investigation purposes
Created attachment 10529 [details] Firefox network analysis
Created attachment 10530 [details] Firefox network analysis: slowdown01
Created attachment 10531 [details] Firefox network analysis: slowdown02
Created attachment 10532 [details] Firefox network analysis: slowdown03
Created attachment 10533 [details] Firefox network analysis: access denied
# Possible fix The screenshot `slowdown03` shows, that the ping command was slow and took about 8 seconds in total. It is not much and possibly not worth it, but it may also unblock other things and can probably easily be fixed, because a firewall is blocking ICMP to provider-portal.software-univention.de at the moment (so that `ping provider-portal.software-univention.de` hangs)
(In reply to Max Pohle from comment #8) > # Possible fix > > The screenshot `slowdown03` shows, that the ping command was slow and took > about 8 seconds in total. It is not much and possibly not worth it, but it > may also unblock other things and can probably easily be fixed, because a > firewall is blocking ICMP to provider-portal.software-univention.de at the > moment (so that `ping provider-portal.software-univention.de` hangs) This is no `ping` command. This is a simple command to UMC that shall keep the module open the whole time. It takes that long because a UMC module does not answer requests in parallel. It takes 8 seconds to finish the previous request (query I suppose). Ping itself is certainly not the bottleneck.
The problem is still present and improvement is needed. Please also see feedback at Ticket#2021091721000178.
Here is the feedback from the ticket mentioned in comment 10 as quote: """ [...] aber das web-interface ist unglaublich langsam. Falls das ein Kunde benutzen möchte führt das sicher zu einer negativen Benutzer-Erfahrung. Das Laden der Apps-Übersicht dauert 4-5 Sekunden. Das Anwählen einer App 2-3 Sekunden. Ein Klick auf "SAVE" dauert 66-80 Sekunden. Wenn letzteres am Sync mit dem Test-app-center liegt, sollte der Sync vielleicht besser im Hintergrund laufen. """