Dot Net Application Monitoring
Upcoming SlideShare
Loading in...5
×
 

Dot Net Application Monitoring

on

  • 860 views

From the phillydotnet 2012.2 talk

From the phillydotnet 2012.2 talk

Statistics

Views

Total Views
860
Views on SlideShare
857
Embed Views
3

Actions

Likes
0
Downloads
7
Comments
0

2 Embeds 3

http://shakertechnologies.tumblr.com 2
http://www.scoop.it 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Dot Net Application Monitoring Dot Net Application Monitoring Presentation Transcript

    • Ravi Okade
    • Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
    • Me (raviokade at hotmail) I have been programming since I like to program in My favorite programming topic is Data, more data, big data
    • 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
    • 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
    • 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
    • Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
    • 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
    • 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.
    • Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
    • 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
    • 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
    • Intellitrace Production Setup Application IntelliTrace Recorder CollectionPlan.xml IntelliTrace File
    • 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.
    • 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>
    • 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.
    • IntelliTrace DEMO Tracing an EXE Application Tracing a Web Application Customizing Trace Collection Plan Image: http://www.crowcanyon.com/Pick-a-demo.html
    • Agenda Production Troubleshooting Issues WinDbg – a brief introduction Main Agenda: ○ Part 1 - IntelliTrace ○ Part 2 - System Center APM
    • 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)
    • 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)
    • How is it different fromIntellitrace? Always-on monitoring Performance monitoring Remote administration/configuration Correlation with performance counters Multi-server call chains
    • System Center .Net Monitoringsetup System Center System System Center Application Center Agent Server DB Monitored Web Application System Center Operations Monitor
    • System Center APM Demo Monitoring a Web Application View Alerts View Stack Trace and Parameter Values Customizing What is collected
    • 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 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
    • 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