Click here to Skip to main content
Click here to Skip to main content

Application dashboard for tracking .NET application performance

By , 26 Jul 2006
 

Sample Image - MemoryDashboard.jpg

Introduction

When a .NET application is running, it registers and updates a large number of performance counters which you can use to monitor the way your application is running - for example, how many threads is it using, what its memory usage is, how long it spends doing garbage collection, and so on.

You can read these properties using the .NET Framework built-in PerformaceCounter class. The attached code does just that and presents the results in a graphical format which you can have open and watching as you test your application - this can show up performance issues before the users get to see the problems.

How to use

To use the application, start your test application running, then fire up the application dashboard. Then select the menu File .. Settings and select your application from the drop down list of running .NET applications. You can also adjust the maximum and minimum values of each gauge so that it better matches your application.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Duncan Edwards Jones
Software Developer (Senior) JP Morgan
Ireland Ireland
Member
C# / SQL Server developer
Microsoft MVP 2006, 2007
Visual Basic .NET

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
GeneralException on Application Closememberdgauerke27 Jul '06 - 3:05 
Interesting project.
 
But if the Dashboard is attached to a running application and that application is closed, the Dashboard throws an exception in the timer event that the application does not exist. It would be more useful if the Dashboard disconnect from a terminated application.
 
Also I noticed that the application is saved in the Settings. This will cause the same exception as above when the Dashboard is restarted and the last application is not running.
 
And some useful additions would be to add commands that disconnected from all application, suspend/resume monitoring and some form of logging or histogram.
 
Otherwise not too bad Smile | :)
GeneralRe: Exception on Application ClosememberDuncan Edwards Jones27 Jul '06 - 3:50 
For a histogram of the application performance the perfmon tool that comes with Windows is probably better than anything I could knock -up.
 
However the error handling does definitely need to be implemented. I'll look into it...
 
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd

GeneralRe: Exception on Application ClosememberDuncan Edwards Jones28 Jul '06 - 1:41 
Fixed code uploaded (2006-07-28)
 
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 27 Jul 2006
Article Copyright 2006 by Duncan Edwards Jones
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid