Forum Discussion
Active OneDrive makes whole environment 'sluggish'
Our client is using AVD for about 5 weeks in 'production' now. It is a smaller company with about 40 users. We have 6 VM's in AVD (D4s_v5) in use at the moment. We have tried D8s_v5 without any improvement.
But we see memory and cpu usage at high levels most of the time with OneDrive at the top of the processes. Every server feels sluggish at the moment. Starting Excel takes about 30-40 seconds, Word about the same time. Opening a Word document takes about 20-25 seconds to open and opening folders from the right pane (yes only the right pane) in explorer takes abount 7-15 seconds per folder.
All those folders are folders from SharePoint document libraries.
It doens't matter if a folder is fully synced with the server or it isn't.
We are using FSlogic with profiles stored on azure.
I was reading a blog of Christian Brinkhoff about almost the same kind of issues but can't really pinpoint the exact cause or find a solution for this issue.
Can you help me out?
53 Replies
- O_Crow93Copper Contributor
Was it ever resolved my MS or is the workaround still the administrator full access to the regkey?
- Oliver_KrageBrass Contributor
Any news if MS has fixed this issue?
- Yanick_GublerCopper Contributor
We have been waiting for a solution for over a year. SharePoint and OneDrive is now super fast (like local) on the AVD with FSLogix.
We just had to give the administrator full access to the latest version of Microsoft.OneDriveSync_xxx_neutral_8wekyb3d8bbwe under Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\.
- JamesC1920Copper ContributorWe had this issue, edited the permissions on the reg key Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\Microsoft.OneDriveSync_24180.905.1.0_neutral__8wekyb3d8bbwe
And it instantly started working as normal- Yanick_GublerCopper Contributor
Thank you very much. This has solved the problem. We have been waiting for a solution for over a year. SharePoint and OneDrive is now super fast (like local) on the AVD with FSLogix.
We just had to give the administrator full access to the latest version of Microsoft.OneDriveSync_xxx_neutral_8wekyb3d8bbwe under Computer\HKEY_CLASSES_ROOT\PackagedCom\Package\.
- anthony1015Copper Contributor
JamesC1920 Change it to what exactly ?
- JamesC1920Copper Contributorany entities that didn't have full control, we changed to full control. Not sure this would result in any other issues but it sorted it.
- Oliver_KrageBrass ContributorEBRIN2233 is there any news? 🙂
- EBRIN2233Brass ContributorHi Oliver. Sorry, I was on holiday for a few weeks and pretty much 100% offline.... 🙂
The only news I have regarding this issue:
The client will move to Azure Storage for the time being. As I understand this issue happens randomly. One instance has this issue, the other doesn't... But if that is true - I have my doubts.
AVD is a great solution - but still has these issues and is in combination with M365 / OneDrive, in my opinion, not suitable to be used in a production environment. Stick to SMB storage!- Oliver_KrageBrass ContributorHi EBRIN2233 thanks for the reply. But sad to hear because this is one of the reasons customers wanna go with AVD instead of RDS 😞
- Oliver_KrageBrass ContributorI am way under the sync limit MS advises but there are still problems. When the customer opens some the the documents they get the "was not able to download the content" and if you say "try again" it opens the document. Also i see some strange issues regarding the upload blocked error so the user cannot make changes to a document. We are in dialogue with the customer regarding tranfser the files to a normal file share. The sync performance with Win11 Multi session + FSLogix is just not good enough of what i have seen.
- EBRIN2233Brass ContributorWe are in dialogue with the customer regarding tranfser the files to a normal file share. --> This is exactly the discussion we are having with our client at the moment.
But MS OneDrive team is working on our case. If I know more or get an interesting reaction from them I will let you know.- Oliver_KrageBrass ContributorAny news regarding your support case with Microsoft?
- tommykneetzIron ContributorSame issues with my customer... I had to go back wo Windows 10 and now all is fine... we doubled user on one host
- Oliver_KrageBrass ContributorPlease let me know when its working for you in Windows 11 again
- EBRIN2233Brass Contributor
tommykneetz Back to Windows 10....
Oh my..... At least MS has until october '25 to solve this for you in Win11...
- Marantz01Copper ContributorWe have been working on this issue for months with Microsoft support, but still no solution. Very frustrating and very poor support.
- EBRIN2233Brass ContributorHI Marantz. That's frustrating...
We see issues on AVD and locally with OneDrive. So the focus of MS Support team is on OneDrive at the moment. - Oliver_KrageBrass ContributorI found the solution at least in our enviroment. The customer needed Citrix Workspace installed on the AVD host (dont ask why). This slows the entire file explorer + OneDrive down when its running in the background. If i close Citrix Workspace for my test user, it went pretty fast.
- Marantz01Copper ContributorHi Oliver, We had Citrix Workspace running, but closing the processes did not improve OneDrive performance.
- Oliver_KrageBrass ContributorI have a customer that is experiencing slow performance regarding OneDrive/SharePoint when opening files on AVD Hosts.
The setup is:
- WVDadmin with a master VM that i make changed on and re-image.
- AVD is domain joined but NOT hybrid joined.
- 10-12 users on D4s V5 (4 vCPU and 16 GB RAM) AVD hosts. Started with two but tried with tre as well it gave no performance increase regarding OneDrive/SharePoint
- I have used MS own Windows 11 23H2 Multi session host without Office package.
- Installed Office package with shared computer activation WITHOUT teams and OneDrive included.
- Run https://github.com/The-Virtual-Desktop-Team/Virtual-Desktop-Optimization-Tool after image rollout, removed bunch og appx packages, services and scheduled tasks.
- Installed OneDrive as machine install (best prac for AVD) (newest version).
- FSLogix is the newest version on Azure Files Premium 490 GB Storage. Multi SMB Channel enabled.
- Implemented OneDrive cleanup by Marcel: https://blog.itprocloud.de/OneDrive-Clean-Up-For-Azure-Virtual-Desktop-AVD-agains-Profile-Blotting/
- Users use seperate dedicated mailbox that they need to roam credentials with and therefore roamidentity is enabled.
The Issue:
OneDrive/SharePoint files is like 20-30 seconds to open for the users. It makes no difference if the file is not on-demand or not. What is wrong here and what can be done so its faster for the users?- EBRIN2233Brass ContributorHi Oliver.
Our freshly installed VM's seemed to do the trick. For about three days.
We are experiencing the same issues like you have. Browsing through explorer on a "local' disk is fast. Browsing through explorer on SharePoint/OneDrive files is slow - 20-30 seconds per click.
We are working with a partner for a solution on this. But are considering a move to Azure File Storage instead of SharePoint - yes, the client will lose the M365 functionality, we know.
Do you have any updates?- Oliver_KrageBrass Contributor
EBRIN2233 HI,
It worked to deploy a fresh AVD host without using the VDOT or Marcels OneDrive cleanup. Im seeing pretty normal performance for the users. The only problem is i have nothing to dehydrate the files for the users.
Disk is 128 GB SSD Premium and IOPS is bumped up to 1100. Im running 1:1 ratio with the vCPU per user.
Analyze Resource Consumption:
PerfInsights: Consider using PerfInsights, a tool specifically designed for Azure VMs. It provides insights into Azure best practices, SQL best practices, I/O latency graphs, and detailed CPU and memory information.
Existing Tools: Utilize familiar performance troubleshooting tools like Perfmon or Procmon (similar to on-premises servers). These tools can help identify resource-intensive processes and bottlenecks.
Common Factors for High-CPU Situations:
Recent Code Changes or Deployments: Check if recent code changes or deployments (especially for apps like Internet Information Services, Microsoft SharePoint, or Microsoft SQL Server) are contributing to the high CPU usage.
Updates: Investigate whether recent OS-level updates or application-level cumulative updates might be causing the issue.
Query Optimization: For SQL Server and Oracle data tier applications, outdated indexes or inefficient query plans can lead to increased CPU consumption.
Azure VM-Specific Processes: Certain processes (e.g., RDAgent, Monitoring Agent, MMA agent, or Security client) specific to Azure VMs may cause high CPU usage.
Check VM Size and Storage:
Verify if the current VM size (D4s_v5) is sufficient for the workload. If both CPU usage and available memory are consistently high, consider upgrading to a larger VM size (e.g., D8s_v5) to better support your users’ needs.
Monitor and Optimize:
Continuously monitor resource utilization using Azure Monitor or other monitoring tools.
Optimize your application code, database queries, and indexing to reduce unnecessary resource consumption.
Review Extensions and Agents:
Ensure that any extensions or agents running on the VM (e.g., Monitoring Agent, MMA agent) are configured correctly and not causing excessive CPU load.
Remember that each environment is unique, so tailor your troubleshooting approach based on the specific characteristics of your client’s AVD setup. If the issue persists, consider reaching out to Azure support for further assistance.