Containers with many Terminal Server users and printers redirected on 32-bit Parallels Virtuozzo Containers for Windows nodes may experience various resource allocation issues:
Event ID: 1524
Windows cannot unload your classes registry file - it is still in use by other applications or services. The file will be unloaded when it is no longer in use
Event ID: 1517
Windows saved user USERNAME registry while an application or service was still using the registry during log off. The memory used by the user's registry has not been freed. The registry will be unloaded when it is no longer in use. This is often caused by services running as a user account, try configuring the services to run in either the LocalService or NetworkService account.
Insufficient system resources
Due to Microsoft Windows specifics, some Terminal Server session data is not cleaned if the logoff process is not fully completed. Since these settings are stored in the Registry, the system allocates memory in kernel space, and on 32-bit systems, it may lead to a non-paged pool shortage issue.
Install User Profile Hive Cleanup service in order to forcibly clean session data.
NOTE: The package should be installed inside the container on 32-bit nodes only.