Profiling .NET Web App with No Code
I have a .NET web application running on a server that is suffering and eventually failing under load. Is there any kind of profiler I can run without having ac开发者_Go百科cess to the code?
You can use profilers like Ants profiler or JetBrains dotTrace, or even the built in profiler in Visual Studio premium.
Both Ants and dotTrace have time limited evaluation versions so you can easily try them out for a while.
The profiler can run without source code or debug symbols, but without at least debug symbols (*.pdb) you might have a hard time to interpret the result.
You will also have a hard to fix any problems if you don't have any source code. You could in theory disassemble the code with ildasm.exe, fix the bug and then reassemble the code with ilasm.exe, but that is not as easy as fix it in the code.
If there's a database involved, that's usually your best chance for improvements. This is especially true if you don't have any code - you can tweak database indexes and sometimes get huge gains without ever seeing the code.
精彩评论