Hello Vladimir,
Thank you for your question and for reaching out with your question today.
Excessive memory usage by the Service Host: User Profile Service on Windows Server 2022 can indeed cause performance issues, especially in Remote Desktop Services environments. This service is responsible for loading user profiles and can sometimes exhibit memory leaks or inefficiencies, leading to high memory consumption.
Here are some steps you can try to resolve the high memory usage issue:
1. **Update Windows and Drivers:**
Ensure that all Windows updates and patches are installed on the affected virtual machines. Additionally, update the drivers (especially display and network drivers) to the latest versions provided by the hardware manufacturer.
2. **Check for Known Issues:**
Check Microsoft's official documentation and forums for any known issues related to Service Host: User Profile Service on Windows Server 2022. Sometimes, Microsoft releases hotfixes or updates to address specific problems.
3. **Use Performance Monitor (PerfMon):**
Monitor the memory usage of the Service Host: User Profile Service using the Performance Monitor (PerfMon) tool. Analyze the memory usage trend over time to identify patterns and potential memory leaks.
4. **Isolate Profiles:**
If possible, try isolating user profiles by disabling unnecessary user profiles or configuring Remote Desktop Services to use separate user profile disks. This might help prevent the memory usage from affecting all users.
5. **Restart the Service:**
As a temporary measure, you can schedule a task to restart the Service Host: User Profile Service periodically. This will free up the accumulated memory and temporarily alleviate the performance impact.
6. **Analyze User Profiles and GPOs:**
Review the user profiles and Group Policy Objects (GPOs) applied to the affected virtual machines. Incorrect or misconfigured GPOs can sometimes cause issues with the user profile service.
7. **Third-Party Software Conflicts:**
Check if any third-party software, such as antivirus or management agents, is conflicting with the Service Host: User Profile Service. Temporarily disable or update such software to see if the issue is resolved.
8. **Monitor Other Processes:**
Monitor other processes running on the virtual machines to identify if any other applications or services are contributing to the high memory usage.
9. **Contact UiPath Support:**
If the issue persists and it seems related to UiPath RPA unattended robot scripts, consider reaching out to UiPath support for assistance. They might have insights or specific recommendations for their software in a Remote Desktop Services environment.
10. **Resource Analysis:**
If the memory usage remains consistently high and there are no other obvious solutions, consider analyzing the resource requirements of the UiPath robot scripts. It's possible that the scripts are consuming excessive memory due to their complexity or resource-intensive tasks.
Always ensure that you have backups or snapshots of your virtual machines before making significant changes or updates. Additionally, it's advisable to test any changes in a non-production environment first to avoid potential disruptions.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.
Service Host: User Profile Service Windows Server 2022 High RAM Usage
I have three identical virtual machines running Windows Server 2022. The specs are as follows: CPU 24, RAM 64GB and 700GB C drive.
All three machines were built a year ago and have been used only to run Remote Desktop Services for the purpose of executing UiPath RPA unattended robot scripts.
For some time I am experiencing severe impact on the performance of all three machines due to the fact that the memory usage is way too high because of the Service Host: User Profile Service consuming as high as 40+GB of memory.
Once the server is restarted it takes few days for the service to consume this amount of memory.
Is there any fix for this, can someone advise what I could try to resolve this issue?
2 answers
Sort by: Most helpful
-
Limitless Technology 44,431 Reputation points
2023-08-03T08:25:30.3533333+00:00 -
Hania Lian 18,731 Reputation points Microsoft Vendor
2023-08-03T08:25:33.1466667+00:00 Hi @Nesic, Vladimir
Follow the steps below to troubleshoot the error:
- Restart the User Profile Service.
- Check for any updates or patches for Windows Server 2022.
- Check for any third-party software that may be causing the issue.
- Check for any malware or viruses that may be causing the issue.
- Check for any hardware issues such as faulty RAM or hard drive.
Hope the information is helpful.
Best Regards,
Hania Lian
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.