Query Details

Identify Processes That Are Heavily Using Disk Space

Query

Use Case: Identifying and prioritizing processes with high on-disk working set size for system resource optimization.

Query:

Process
| where OnDisk == true
| project ProcessName, Path, WorkingSetSizeMB = WorkingSetSizeBytes / (1024 * 1024), OnDisk
| order by WorkingSetSizeMB desc

Explanation

The query is used to identify and prioritize processes that have a high amount of data stored on the disk. This information is important for optimizing system resources. The query selects processes where the data is stored on the disk, and then projects the process name, file path, and working set size in megabytes. The results are then ordered in descending order based on the working set size.

Details

Ugur Koc profile picture

Ugur Koc

Released: February 4, 2024

Tables

Process

Keywords

Process,OnDisk,Project,ProcessName,Path,WorkingSetSizeMB,Order

Operators

whereprojectorder bydesc

Actions