This tutorial will show you how to use ASP.NET and VB.NET to monitor Windows performance, e.g. performance counter, threads and processes.

Using the namespace of System.Diagnostics to get the data from Windows performance counter…

At first declare three PerformanceCounter instances, define the category and counters in performance monitor

Then display the values obtained in different Labels. Label1 is for displaying the available memory, Lable2 is for the current processes numbers, while Lable3 is used for the total processes

By the looping of PerformanceCounterCategory.GetCategories method to go through all available categories

The front page of Default.aspx

The whole code behind front page:

Download Source Files