Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSPerf and Azure Cloud Services

When I deploy a cloud service to Windows Azure it causes a number of VSPerf.exe instances to start - anything from 1 to 5.

Between them they consume all the CPU and none of the processes ever terminate themselves.

If I remotely connect to the instance and terminate the processes manually they restart on the next request. If the process is terminated during the request then the request succeeds and the page displays and functions as expected.

The only difference between this is a previous deployment is I have since upgraded to .NET 4.5 and therefore upgraded the cloud service to server 2012.

What could be causing this?

Update

For every failed start up 2 events are logged:

  • VsPerf Tool Error: Error starting data collection with a dedicated process D:\Program Files (x86)\Microsoft Visual Studio 11.0\Team Tools\Performance Tools\VSPerf.

  • .NET Runtime version 4.0.30319.18010 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{44a86cad-f7ee-429c-83eb-f3cde3b87b70}'. HRESULT: 0x80040111. Process ID (decimal): 1444. Message ID: [0x2504].

Update 2

The VSPerf issue does not occur after a new instance is created or the machines are reimaged (at least thats a fix (an annoying and time consuming fix) for now).

like image 441
Jamie Avatar asked Nov 29 '12 18:11

Jamie


1 Answers

Check the Azure publish settings in Visual Studio, I'd bet you have enabled profiling on the Advanced tab.

VS Publish Settings

like image 164
MichaelLipscombe Avatar answered Sep 18 '22 16:09

MichaelLipscombe