Monitoring Processes for Performance
Author : Madhu Sankuru
Performance monitoring is typically directed at entire systems. For example, system administrators often monitor such things as the available bytes of memory in disk or total processor use on a computer. Low disk space is a system killer.Confirm that all of the disk drives have sufficient free disk space.Free space is needed for growing logs of various systems, enlarging databases, data backups, or software caching data etc.
This kind of monitoring is extremely useful because it identifies problems, such as rapid diminution of available memory, that can have a detrimental effect on the performance of the computer itself.
In this article, I will show
- How you can use xFusion Studio to monitor the performance of an application and get notified when the performance of the application goes down.
- How to find total amount of processor time allocated to a process without writing any script.
Monitoring the avilable free space of individual hard disks drives
Step 1: Create a connection to Windows Management Instrumentation
Step 2: Extract records from the logical disk table
Create a standard query object.The table we are interested in is Win32_LogicalDisk .
The columns that we are interested in is device name, device id, device type, Free space, size, system name.
Step 3:Identify low free space drives
Create filter query and specify minimum limit of disk space.

Step 4:Create validation rule
Add the above filter query in validation rules.
Step 5: Define export template with validation rule
Create an export template and add validation rule with email notification (notify if export fails).
Step 6: Automate the process
Create a batch file to run the export from any scheduler like Windows Scheduler or xFusion Scheduler at specified time intervals.
The scheduler will run the batch file at specified time intervals and as soon as the disk space falls below the specified limit (using validation rule in export template), xFusion Studio sends e-mail to system adminstrator.
How to find total amount of processor time allocated to a process using xFusion Studio?
Step 1: Extract records from the process table
Create a standard query object. The table we are interested in is Win32_Process .The columns that we are interested in is name, osname, kernelmodetime and usermodetime.

Step 2: Calculate the total processor time
For each process in the collection, calculate the total processor use.
- Add the values for kernel mode time and user mode time using xFusion Studio.
Together, kernel mode time and user mode time tells you the total amount of processor time allocated to a process. Ensure that these values are added and not concatenated.
- Divide the combined value by 10,000,000.
Processor use times are reported in 100-nanosecond increments. (A nanosecond is one-billionth of a second; 100 nanoseconds equal one ten-millionth of a second.) This calculation results in processor use being reported in seconds.

The complete flow is show here

Now that you have seen how you can use xFusion Studio -WMI Connector to monitor free space on the disks without having to write any script. The news that there is not enough space on the disk will not take you by surprise in the worst time any more and you will no longer have to worry about it.
Benefiters:
- Network managers who want to collect specific data from one (or more) server.
- IT professionals who what to know precisely what's happening in their Microsoft operating system.
- Those techies who love remote control without hassle.
|