• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Dong L. · Apr 30, 2014 at 08:48 AM ·

.NET Memory Counter not show up in dynaTrace

dynaTrace 5.6. Customer cannot see the .NET process memory metrics after agent install (IIS 6 on Windows 2003). To work around the problem, we tried to use Windows Perfmon to capture the same data. Here is the steps we took:

  1. log into the host where .NET agent is installed. Run Perfmon and make sure we can capture data from perfmon and took note on the Counter Name, InstanceName and objectName
  2. from dynatrace client, we created a perfmon measure from out of box one but replace the parameters with values from step #1
  3. Then run the monitor and get an error. Below is the error msg:

Detailed message: ASP.NET Applications
Errors Total
_Total:Unable to get Value. Please check if the host is reachable and the requested Performance Counter is available. Detailed error message: The returned data is valid.
(System error code: 0x0)

Retrieved measurements: ARINC - .NET Memory Gen 0: 139.0
ASPTotalErrors_WFH: null
Committed Bytes In Use: 16.0
Current Disk Queue Length: 0.0
Disk Reads/sec: 0.0
Disk Writes/sec: 1.0
Free Diskspace: 19384.0
Free Memory: 2517808.0
Get Requets_WFH: 0.0
Idle Time: 88.749
LogicalDisk Free Percentage: 18.205000000000002
Pages Input: 0.0
Pages Output: 0.0
Pages/Sec: 0.0
PhysicalDisk Read: 0.0
PhysicalDisk Write: 6142.0
PostRequests/Sec_WFH: 0.0
Process Count: 54.0
Process Memory Usage: 1.46962432E9
Processor Interrupts/sec: 190.363
Processor Time: 11.25
Run Queue, current: 0.0
ServiceUptime_WFH: 43824.0
TotalConn_wfh: 25346.0
TotalPostRequests_WFH: 46963.0
TotalPutRequests_WFH: 0.0
User Time: 9.687

we do get data from those out of box measures (as you can see from the rest data), so we believe the permission is not an issue (otherwise, it won't get other data as well). 

I tried the same steps on my local machine with easy travel, I can see data from my perfmon for .NET Gen 0, but not able to get data in dT with the same error message. In my case, here is the error:

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

4 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Andreas G. · May 04, 2014 at 02:51 AM

Are you ok if we move this post to the public forum? I think this would be beneficial for customers as well

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Dong L. · May 06, 2014 at 05:12 AM 0
Share

Absolutely, I believe this is a generic issue/solution, public forum is a good place to have it.

avatar image

Answer by Dong L. · May 03, 2014 at 06:41 AM

The instruction as I outlined in the post fix the issue, but you need to restart the OS to have it be effective. an IIS Reset does not enough.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Zajac W. · May 01, 2014 at 04:23 AM

Hi Dong,

The way to check if it is letter b) in Andi's post is:

  1.  On the server that is being monitored with the .NET agent, note how many instances of the .NET process are showing up in task manager
  2.  On the server that is being monitored with the .NET agent, note how many instances of the .NET process are showing up in performance counter under that specific counter (Gen 0 in this case).
  3. If there is a difference (item 2 < 1) , you have a parent native process that doesn't have its own CLR and a true .NET process.

I have seen this issue on IIS7 on windows 2003 and 2008.  I have not seen it on IIS6.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Andreas G. · May 01, 2014 at 02:25 AM

The difference in these counters is that those that deliver values are system measures (Disk, Memory, ...). The Gen 0 are specific to a particular .NET Process. Thats why out-of-the-box our .NET AGent will retrieve these values and using its own instance id when querying these values.

I see two potential areas that could explain the problem

a) the user that runs your .NET Process (thats the process where the .NET AGent is loaded into) doesn't have the privilidges to get these process specific counters

b) there is a problem with the instance id when our agent tries to query PerfMon. The agent may "believe" it has a different instanceId than what needs to be used to query the perfcounters. There is the following KB that talks about this (unfortuntaely no resolution): KB-323 Windows Performance Counters may not be correct

If you cant solve that problem I would reach out to tech support by opening a ticket

Comment

People who like this

0 Show 1 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image Dong L. · May 01, 2014 at 09:47 AM 0
Share

Andy, customer opened a ticket in support portal, the support team did some research and the info is relevant to what you described. I post the support ticket update and will verify with customer tomorrow to see if issue is fixed. Here is the support ticket update:

I believe I found a relevant document that documents the issue at hand: http://www.debugdotnet.com/mapping-performance-counter-w3wp-instance-names-to-asp-net-worker-pids.html

The steps given are:

"If you cannot see a counter that is named Process ID under .NET CLR Memory, the performance counter symbols may not be installed correctly. To resolve this issue, follow these steps:

- Click Start, click Run, type cmd, and then click OK.
- At the command prompt, type unlodctr .NetFramework, and then press ENTER.
- Use the cd command to change to the Microsoft.NetFrameworkv2.0.50727 folder.
- At the command prompt, type lodctr corperfmonsymbols.ini, and then press ENTER
"


Problems:
- the "Process ID" counter is not available in this CLR/OS
- therefore dynaTrace cannot map the PID to the w3wp process and does not find the GC metrics
- the next step is to find out why that counter is not available and if there is a way to enable it

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A