When the WEM agent runs on Windows Server 2022, the memory usage limit applied to specific processes might not work as expected
This issue [WEM-28773] is fixed in Workspace Environment Manager Agent 2402 and later. For more details on the issue, refer to https://docs.citrix.com/en-us/workspace-environment-management/service/whats-new#fixes
Download the latest WEM agent package (Citrix-Workspace-Environment-Management-Agent-Setup.zip) from the WEM service Utilities tab and save a copy on the agent host.
Citrix uses the Microsoft API to manage the memory limit. The API doesn't work well on Windows 2022 Server OS, which causes the problem.