High Memory Usage on Windows Server 2022 – User Profile Service (Solution)

UiPath Version:
2024.10.16

Problem:
On Windows Server 2022 machines running UiPath (v2024.10.16), memory usage keeps increasing over time.
The high consumption is linked to the User Profile Service, eventually impacting system stability.

Solution:
After multiple sessions with UiPath Support, the root cause could not be directly attributed to the UiPath Robot itself.

We tried several mitigations beforehand, including:

-Applying system environment variables related to behavior and sessions

-Adjusting robot settings in Orchestrator

-Upgrading the Robot version

None of these steps resolved the issue.

Further investigation showed that the problem is indirectly triggered by UiPath: the frequent logon sessions created by the robot cause User Profile Service memory usage to continuously increase. When the robot logs off, the memory is not released, due to a known issue in Windows Server 2022.

Solution:
Updating the Windows Server 2022 OS to a newer build fixed the underlying OS issue (registry handling and memory cleanup). After applying the OS update, memory usage stabilized and the problem was resolved.

Recommendation:
If you encounter high memory usage related to User Profile Service on WS2022 with UiPath, make sure the operating system is fully updated.