Docker Community Forums

Share and learn in the Docker community.

ASP.Net Performance Counters reading 0


(Evmurphy) #1

We’ve “lifted and shifted” a .net web app into a Windows container using the microsoft/aspnet base image.
All ASP.net performance counters inside my windows container are reading 0.
For example:

[07b478d1244e...]: PS C:\> Get-Counter -Counter "\ASP.NET Applications(*)\Requests/Sec"

Timestamp                 CounterSamples
---------                 --------------
6/21/2018 10:34:33 AM     \\07b478d1244e\asp.net applications(__total__)\requests/sec :
                          0

Other performance counters, on the other hand, have values:

[07b478d1244e...]: PS C:\> Get-Counter -Counter "\Processor(*)\% Processor Time"

Timestamp                 CounterSamples
---------                 --------------
6/21/2018 10:42:12 AM     \\07b478d1244e\processor(0)\% processor time :
                          98.461536037866

                          \\07b478d1244e\processor(1)\% processor time :
                          100

                          \\07b478d1244e\processor(_total)\% processor time :
                          99.230768018933

Has anyone had any issues with performance counters in windows containers? Specifically asp.net counters?


(Greggu) #2

Greetings,

Do you have a chance to try Windows Server, version 1803? It was listed in issue fixed section.