Forum Discussion

Tony_Barger's avatar
Tony_Barger
Copper Contributor
Feb 17, 2022

Get-Process on a single service with high CPU

Hello Folks, 

 

I have been playing around with this --> Get-Process ReportingServicesService | Sort-Object | Select-Object for example and gives me what I need but I need more detailed info. Like for instance when a service consumes very high memory drain is there a variable or function to expand what is really taking all the memory under that single process?  

  • farismalaeb's avatar
    farismalaeb
    Steel Contributor

    Tony_Barger 

    Hi

    Not, as far as I know, there is no built-in way in the Get-Process to get which process is consuming the memory after a certain threshold.

    Instead, you need to monitor this through your script, calculate the percentage and issue a warning once the value reaches the required level, issue a Send-MailMessage or send an alert.

     

     

Resources