Difficulty in Getting Information For API Calls Hosted in IIS
JasonBock
Posts: 10 Bronze 2
I'm currently working on fixing performance issues for a client. I've been trying to use ANTS to get meaningful information, but so far it's been frustrating. Here are some issues I've seen:
* The API calls can be spread across multiple threads in IIS, so I'm forced to search for the controller method name across numerous threads. I've tried resorting to naming the threads, but that's not a great solution as there's numerous asynchronous calls done during the API execution, and task continuation can happen on another thread. Is there a simple way to say, "I'm starting with this method, where is it showing up in the profiled information?"
* I usually get a lot of "x hidden methods without source" in the call trees, but a lot of times it seems like the tree should be able to resolve at least some of the calls as they're in the API project.
* I've been using "Attach to .NET 4+ process" as the initial warm-up of the application is pretty harsh. But, whether I attach to w3wp.exe, or I use "IIS - ASP.NET", the problems I mentioned above still happen.
I'd share screen shots to show what I'm getting at, but this is client work and I'd rather not publish that here. Using 10.1 if that helps. Any insight into what I'm describing is greatly appreciated, TIA.
* The API calls can be spread across multiple threads in IIS, so I'm forced to search for the controller method name across numerous threads. I've tried resorting to naming the threads, but that's not a great solution as there's numerous asynchronous calls done during the API execution, and task continuation can happen on another thread. Is there a simple way to say, "I'm starting with this method, where is it showing up in the profiled information?"
* I usually get a lot of "x hidden methods without source" in the call trees, but a lot of times it seems like the tree should be able to resolve at least some of the calls as they're in the API project.
* I've been using "Attach to .NET 4+ process" as the initial warm-up of the application is pretty harsh. But, whether I attach to w3wp.exe, or I use "IIS - ASP.NET", the problems I mentioned above still happen.
I'd share screen shots to show what I'm getting at, but this is client work and I'd rather not publish that here. Using 10.1 if that helps. Any insight into what I'm describing is greatly appreciated, TIA.
Tagged:
Answers
Hi @JasonBock,
So sorry to hear you're running into issues!
Regarding the methods without source, this can happen for a method if the profiler can't locate the correct pdb file for the assembly containing the method. Can you please choose to show the hidden methods, then check if you do have the pdb file? (Kindly see here for pdb troubleshooting steps - https://documentation.red-gate.com/app9/troubleshooting/common-issues/troubleshooting-pdb-problems)
For searching the method, creating a call graph would show everything that calls on that method- would that help?
Jessica Ramos | Product Support Engineer | Redgate Software
Have you visited our Help Center?