Bug 43888 - Opening the users module is too slow
Opening the users module is too slow
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: UMC (Generic)
UCS 4.2
Other Linux
: P5 normal (vote)
: UCS 4.2
Assigned To: Florian Best
Stefan Gohmann
: interim-4
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-03-16 07:15 CET by Stefan Gohmann
Modified: 2017-04-04 18:28 CEST (History)
3 users (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
Screenshot (61.15 KB, image/png)
2017-03-16 11:23 CET, Florian Best
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2017-03-16 07:15:30 CET
After the UMC login, it takes nearly 20 seconds to start the users module. The groups module takes about 15 seconds. It looks like UMC does other things like checking the join scripts.

On demo.univention.de it takes about 3 seconds.
Comment 1 Florian Best univentionstaff 2017-03-16 10:42:14 CET
Can you open the network console and see which request is displayed as "pending" ?
Comment 2 Florian Best univentionstaff 2017-03-16 11:23:45 CET
Created attachment 8549 [details]
Screenshot

There are a lot of request which take very long during startup of UMC.
Comment 3 Alexander Kläser univentionstaff 2017-03-20 10:19:04 CET
AFAIS, there seems to be a bottleneck in the UMC server. To me it seems that a UMCP request blocks other requests until it is finished. Could that be?
Comment 4 Alexander Kläser univentionstaff 2017-03-20 10:19:40 CET
... if the users module is opened a second time, it is much faster. Thus this problem does not seem to be frontend related.
Comment 5 Florian Best univentionstaff 2017-03-22 17:04:12 CET
univention-management-console (9.0.69-2):
r78154 | Bug #43888: fix memory leak in the UMC-Server

Actually there was a memory leak in the UMC-Server because it set the credentials on each request.
    
Setting the credentials causes a reload of the ACL's, searching for the
user DN as well as sending the password to every opened module process.
This must not be triggered on every request. Move it, so that it is only
done when the password actually changed.

interim-version, no changelog required.
Comment 6 Stefan Gohmann univentionstaff 2017-03-24 16:15:20 CET
OK, it is much faster now.

Code review: OK
Comment 7 Stefan Gohmann univentionstaff 2017-04-04 18:28:13 CEST
UCS 4.2 has been released:
 https://docs.software-univention.de/release-notes-4.2-0-en.html
 https://docs.software-univention.de/release-notes-4.2-0-de.html

If this error occurs again, please use "Clone This Bug".