I have developed one console application and use WMI query as per below
queryCollection = ExecuteWMIQuery(“Select SessionsActive from
Win32_PerfRawData_ASPNET_ASPNETApplications”);
I have add this console application in startup task to send data from azure application, it will increase asp.net total session value as we open application by URL immediately but it will not decrease immediately that value when we close that application!
what should be reason for this issue?
thanks in advance.
The Windows Azure Startup Tasks are logically divided into 3 types: Background, Simple, Foreground. If your task should be always running, you shall never return from your Main() method in your console application, and you shall define this startup task as Background.
As I do understand what you mean by
, I don’t understand what you mean by
. So I can’t understand what kind of issue are you facing.
Could you be more specific and describe the problem in more details so I’ll be able to provide more valuable information.
I also can’t understand what do you mean by
. If you want to monitor some perfomrance counters you can do that with the integrated Windows Azure Diagnostics and Monitoring agent.
Hope this helps!