I have a blocking time in the automapper ProjectTo in .NET Framework App #4424
-
I have some mysterious blocking time apparently in the mapper's ProjectTo method which I can't reproduce locally (probably because of the load). It works fine but after a while (random) response time and thread count spike. Web App is in .NET Framework 4.8 and Automapper version is 10.1.1 This is what I saw in the profiler: Mapping in question is very simple:
And mapping definition:
What caught my eye is that this is called in a loop for the problematic requests, maybe around 100 times or so. I know that this should be refactored so I have one call, but this block never happened before and this was not changed. Any ideas why this might be happening? We are using Automapper for a while and this never happened. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
You need an SQL profiler. |
Beta Was this translation helpful? Give feedback.
You need an SQL profiler.