microsoft / vscode-azurevirtualmachines

Azure Virtual Machines extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurevirtualmachines
MIT License
32 stars 20 forks source link

Degraded performance when fetching/refreshing list of 200+ VMs #385

Open maxsudik opened 1 year ago

maxsudik commented 1 year ago

We have a couple os subscriptions with groups of VMs that have 5-10 VMs in each. When opening the plugin in VS code and then opening a subscription - it takes up to 1 minute to populate with resource groups. Then when opening a resource group with VMs it takes around 30 sec to show list of the VMs

Pls, let me know if you need additional details

alexweininger commented 1 year ago

My apologies for the performance issues you're experiencing.

It's very odd that the resource groups are taking that long to load. What you could try is disabling all Azure extensions (except for Azure Account and Azure Resources) and seeing how long it takes to load. Then you can enable the just Azure Virtual Machines extension to see if that was causing the issues.

alexweininger commented 1 year ago

I've made changes in #391 that half the number of requests the extension makes when loading the list of Virtual Machines. It should help reduce the loading time.

maxsudik commented 1 year ago

@alexweininger I did as you recommended:

What you could try is disabling all Azure extensions (except for Azure Account and Azure Resources) and seeing how long it takes to load. Then you can enable the just Azure Virtual Machines extension to see if that was causing the issues.

and yes, without Azure Virtual Machines the load time is snappy. As soon as I enabled the Azure Virtual Machines extension the loading time increased significantly and spinner is keep showing on loading