(Print this page)

New article: Monitoring computer performance from a .Net application
Published date: Wednesday, June 26, 2019
On: Moer and Éric Moreau's web site

I just published my latest article about (once again) a true story.

I have a user complaining about the performance of his computer when using a commercial application (not one of mine!). He is experiencing serious slowdowns for a few minutes while the markets are highly volatile. Of course, he is just blaming the computer. And the user is not ready to do anything to help diagnosing the issue. Not ready to close his Spotify or his Outlook or anything else just to see if that could help identify the issue. We even offer to install a second computer on his desk to run anything other than this critical application but refuses to do use it. In short, he is a jerk! I hope you don’t have to many users like this.

The first thing I wanted to check were the resources on his computer. I found a few tools, but none were straight to the point. What I really wanted was something like the Windows Task Manager for a remote computer that would let me save values, so I don’t have to sit all day long in front of a screen waiting for slowdowns to happen.

I have used my favorite search engine and discovered that a few WMI (Windows Management Instrumentation) calls would let me achieve my requirements. Much like what we see in the Windows Task Manager, I was trying to get the usage of the CPU, memory, disk, and network to see if one of these is the bottleneck.

If you want to see the code that you can add to a .Net application to monitor the resources of a remote compute (and also how the story ended), have a look at https://www.emoreau.com/Entries/Articles/2019/06/Monitoring-computer-performance-from-a-Net-application.aspx.

(Print this page)