Univention Bugzilla – Bug 32118
UMC-Server: Module processes need too much memory
Last modified: 2023-06-09 17:13:36 CEST
A little module such as the services module needs about 13MB of memory. This easily sums up for multiple users as each module has its own process and upon new authentication new processes are launched. The timeout for orphaned module processes is by default 10min. The major problem is the stateful design of UMC. This problem can only be overcome with a stateless implementation such as REST postulates it (see also Bug 27816).
*** Bug 52655 has been marked as a duplicate of this bug. ***
Bug #43633 provides the possibility to let UMC modules be started as singleton, so that every user/session ends in the same subprocess → consumes only RAM for one additional process. This can be enabled on a per module base. The first candidate where we should activate is the self-service as this is the most used UMC module from different users and therefore using the most resources. A module must be capable to handle this. A important thing therefore is, that when it uses data from the user (e.g. username, password) now `request.{username,password,auth_type}` must be used instead of `self.{username,password,auth_type}`.