Ravi Okade
Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda:    ○ Part 1 - IntelliTrace    ○ Par...
Me (raviokade at hotmail)   I have been programming since   I like to program in   My favorite programming topic is    ...
Production Issue Types   Environmental issues     Connectivity, Hardware issues     High CPU, Memory issues     Typica...
Troubleshooting ApplicationIssues Eventlogs, Perfmon can be of some help But Application logs are most appropriate. Req...
What do you do when logs don’twork ?   Try to reproduce! Near impossible.     QA = Production: rarely!     Takes time!...
Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda:    ○ Part 1 - IntelliTrace    ○ Par...
WinDbg Available as a silent collector or as an  interactive debugger Generates dump files Dump files contain informati...
WinDbg issues Nice tool .. If you know how to use it! Need time to diagnose. Not for those  bleeding issues! Not approp...
Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda:    ○ Part 1 - IntelliTrace    ○ Par...
Intellitrace Code is instrumented dynamically Records program execution flow Historical debugging Records program data...
Intellitrace Low overhead for collection (depends on  collection plan) IntelliTrace supports debugging VB and  C# applic...
Intellitrace Production Setup                                              Application                      IntelliTrace R...
IntelliTrace Collector Basics Collector can be deployed with xcopy You can collect data without installing  Visual Studi...
IntelliTrace Collection steps Download and expand the IntelliTrace  collector cab file Collecting the Trace:     Web Ap...
Open IntelliTrace recording inVisual Studio Ultimate Copy the recording (.iTrace file) to a  computer that has Visual Stu...
IntelliTrace DEMO Tracing an EXE Application Tracing a Web Application Customizing Trace  Collection Plan              ...
Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda:    ○ Part 1 - IntelliTrace    ○ Par...
System Center APM Code is instrumented dynamically Records program execution flow Records program data (Parameters and ...
System Center APM Code is instrumented dynamically Records program execution flow Records program data (Parameters and ...
How is it different fromIntellitrace? Always-on monitoring Performance monitoring Remote administration/configuration ...
System Center .Net Monitoringsetup                   System Center    System   System Center    Application     Center    ...
System Center APM Demo Monitoring a Web Application View Alerts View Stack Trace and Parameter  Values Customizing Wha...
ADO.NET Parameters andExecution time
Security Alerts
Profiling options
System Center APM – Advancedfeatures Client side monitoring System Center Advisor Collected data automated clean-up
When to use whatScenario                       WinDbg         System Center    IntelliTrace                               ...
References   System Center Application Monitoring    Tutorial    https://cmg.vlabcenter.com/default.aspx?moduleid=7a804b1...
Dot Net Application Monitoring
Upcoming SlideShare
Loading in …5
×

Dot Net Application Monitoring

1,269 views

Published on

From the phillydotnet 2012.2 talk

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,269
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
11
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Dot Net Application Monitoring

  1. 1. Ravi Okade
  2. 2. Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
  3. 3. Me (raviokade at hotmail) I have been programming since I like to program in My favorite programming topic is Data, more data, big data
  4. 4. Production Issue Types Environmental issues  Connectivity, Hardware issues  High CPU, Memory issues  Typically managed through alerts Application issues  Related to incorrect application logic  Can lead to incorrect application behavior, “hang” or termination
  5. 5. Troubleshooting ApplicationIssues Eventlogs, Perfmon can be of some help But Application logs are most appropriate. Requires proper logging to be in place. Sometimes you have to change to a more verbose level.  Generates tons of data  Slows down the application  Useless if lots of multi-threading is going on Parameter values are not appropriate for logging
  6. 6. What do you do when logs don’twork ? Try to reproduce! Near impossible.  QA = Production: rarely!  Takes time! Add more logging and redeploy  Not practical in large organizations
  7. 7. Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
  8. 8. WinDbg Available as a silent collector or as an interactive debugger Generates dump files Dump files contain information about the final state of the application Used for critical scenarios where application tends to terminate or hang
  9. 9. WinDbg issues Nice tool .. If you know how to use it! Need time to diagnose. Not for those bleeding issues! Not appropriate for all types of issues.
  10. 10. Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
  11. 11. Intellitrace Code is instrumented dynamically Records program execution flow Historical debugging Records program data  Method Parameters  Return values 1st class debugging experience in Visual Studio
  12. 12. Intellitrace Low overhead for collection (depends on collection plan) IntelliTrace supports debugging VB and C# applications that use.NET version 2.0, 3.0, 3.5, or 4 Available only with Visual Studio Ultimate edition
  13. 13. Intellitrace Production Setup Application IntelliTrace Recorder CollectionPlan.xml IntelliTrace File
  14. 14. IntelliTrace Collector Basics Collector can be deployed with xcopy You can collect data without installing Visual Studio. The collector lets you capture details about exceptions, threads, Web requests, modules, and other system information. The collector saves this information as a recording (.iTrace file) that you can open in Visual Studio Ultimate.
  15. 15. IntelliTrace Collection steps Download and expand the IntelliTrace collector cab file Collecting the Trace:  Web Application (need PowerShell): Start- IntelliTraceCollection <ApplicationPool> <CollectionPlan> <F ullOutputPath> Stop-IntelliTraceCollection <AppPoolName>  Exe Application: IntellitraceSC.exe launch /cp: <CollectionPlan> /f: <OutputFile> <ExecutableFile>
  16. 16. Open IntelliTrace recording inVisual Studio Ultimate Copy the recording (.iTrace file) to a computer that has Visual Studio Ultimate. Start Visual Studio Ultimate. Use the File menu to find and open the recording.
  17. 17. IntelliTrace DEMO Tracing an EXE Application Tracing a Web Application Customizing Trace Collection Plan Image: http://www.crowcanyon.com/Pick-a-demo.html
  18. 18. Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
  19. 19. System Center APM Code is instrumented dynamically Records program execution flow Records program data (Parameters and Return values) Low overhead for collection (depends on configuration)
  20. 20. System Center APM Code is instrumented dynamically Records program execution flow Records program data (Parameters and Return values) Low overhead for collection (depends on configuration)
  21. 21. How is it different fromIntellitrace? Always-on monitoring Performance monitoring Remote administration/configuration Correlation with performance counters Multi-server call chains
  22. 22. System Center .Net Monitoringsetup System Center System System Center Application Center Agent Server DB Monitored Web Application System Center Operations Monitor
  23. 23. System Center APM Demo Monitoring a Web Application View Alerts View Stack Trace and Parameter Values Customizing What is collected
  24. 24. ADO.NET Parameters andExecution time
  25. 25. Security Alerts
  26. 26. Profiling options
  27. 27. System Center APM – Advancedfeatures Client side monitoring System Center Advisor Collected data automated clean-up
  28. 28. When to use whatScenario WinDbg System Center IntelliTrace APMMemory leak Yes Limited NoExceptions Limited Yes YesPerformance No Yes NoDeadlocks, Hang Yes No LimitedRunning threads and stack Yes No YesPerformance impact on target Low/Medium Low/Medium Medium/Highapplication when debugging (configurable) (configurable)Correlation across tiers No Yes Nospread across serversApplication types All Web AllTarget audience Developers Ops (Primary), Developers (High skill) DevelopersAlways On ? No Yes NoCost Free $$ Low
  29. 29. References System Center Application Monitoring Tutorial https://cmg.vlabcenter.com/default.aspx?moduleid=7a804b17-0025-4309-957d- a21c2e121e2b Intellitrace Tutorial http://msdn.microsoft.com/en- us/vs2010trainingcourse_debuggingwithintellitrace.aspx

×