Replies: 1 comment
-
See #3703 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We had incident where our service in production was using CPU more than 60%. Upon closer look at memory, lot of allocation from ToStringWithData.
![image](https://user-images.githubusercontent.com/66053025/216804128-2beca980-68dc-4698-9e78-8f3488b43abe.png)
exception.ToString was active and exception had _innerException set so ToString was active ~6%.
Mostly this logging I saw in Microsoft.Azure.Documents.GoneAndRetryWithRetryPolicy!ShouldRetryAsync function. There are lot of DefaultTrace.TraceError statements, I doubt they are collected if default listeners are removed.
Can we have configuration flag for verbose logging - If enabled emit these errors else not. This is consuming more than %10 of cpu + allocating those many string objects putting pressure on GC.
Beta Was this translation helpful? Give feedback.
All reactions