Dotnet monitor memory usage collection rule #4271
Answered
by
jander-msft
tbajwa2017
asked this question in
Q&A
-
Hello, There is collection rule for high cpu usage as below: Collect Trace - High CPU Usage (EventCounter Trigger)
My question is, is there a collection rule for High Memory usage? |
Beta Was this translation helpful? Give feedback.
Answered by
jander-msft
Apr 17, 2023
Replies: 1 comment 1 reply
-
If I recall correctly, there is no counter for the entire memory usage of the application but there is one for the GC heap size (the total heap memory allocated for managed objects). We have an example of using this counter here: https://github.com/dotnet/dotnet-monitor/blob/main/documentation/collectionrules/collectionruleexamples.md#collect-gcdump---heap-size-eventcounter-trigger |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
jander-msft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I recall correctly, there is no counter for the entire memory usage of the application but there is one for the GC heap size (the total heap memory allocated for managed objects). We have an example of using this counter here: https://github.com/dotnet/dotnet-monitor/blob/main/documentation/collectionrules/collectionruleexamples.md#collect-gcdump---heap-size-eventcounter-trigger