Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Profiling .NET Server Applications

Profiling .NET Server Applications

Profiling .NET Server Applications Talk on Umbraco
UK Festival 2015, London, UK

Tugberk Ugurlu

October 30, 2015
Tweet

More Decks by Tugberk Ugurlu

Other Decks in Programming

Transcript

  1. Agenda • Nature of Server Applications • Profiling Application Logs

    and Server • Profiling Performance Problems • Profiling Memory Problems • Load Testing
  2. Server Applications • Applications Runs under IIS • Windows Services

    • Self-hosted Web Applications • Worker processes
  3. Characteristics of Server Applications • Stateless • Multiple Instances •

    Concurrent • Spreaded and Connected • Multiple Versions at the Same Time
  4. Logging • Rich Logging • Application Logs • Server Logs

    • Storing the Logs (Elasticsearch) • Centralized Logging (Logstash) • Analysing the logs (Kibana) • Log correlation
  5. Application Memory Profiling • Identifying Memory Problems • Taking memory

    snapshots to analyse • Pinning the problem down
  6. WinDbg and ProcDump • Dump file and WinDbg • WinDbg:

    https://msdn.microsoft.com/en- us/windows/hardware/hh852365.aspx • ProcDump: https://technet.microsoft.com/en- gb/sysinternals/dd996900.aspx C:\>procdump -ma outlook -p "\Process(Outlook)\Handle Count" 10000
  7. Network Profiling • Network problems • Watching what is being

    sent and recived • Fiddler • Wireshark
  8. Resources • ANTS Performance Profiler and ASP.NET 5: http://bit.ly/1LYO86Y •

    ASP.NET 5 Log Correlation: http://bit.ly/1Wiv08B • Assembly Memory Leak Sample: http://bit.ly/1HfbTWi • Memory Profiling an Application on IIS: http://bit.ly/1M0rEm7 • Performance Counters with PowerShell: http://bit.ly/1LFiuNO • Diving into Diagnostics on ASP.NET 5: http://bit.ly/1WmqJB2