restart process if it reaches over x amount of memory

Discuss RoboTask here
Post Reply
bfmradio
Posts: 3
Joined: Sat Jun 26, 2021 4:19 pm
Location: New York
Contact:

restart process if it reaches over x amount of memory

Post by bfmradio »

Hi

Is it possible to have RT restart a process if it starts to take a certain amount of resources cpu/memory?


Thank you
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: restart process if it reaches over x amount of memory

Post by Oleg »

What process are you speaking of?
Oleg Yershov
felipe
Posts: 24
Joined: Thu Nov 30, 2023 6:18 pm

Re: restart process if it reaches over x amount of memory

Post by felipe »

powershell script

Code: Select all

$mem = Get-CimInstance -ClassName Win32_OperatingSystem
$usedPercentage = [math]::Round((($mem.TotalVisibleMemorySize - $mem.FreePhysicalMemory) / $mem.TotalVisibleMemorySize) * 100, 2)
"$usedPercentage%"
bfmradio
Posts: 3
Joined: Sat Jun 26, 2021 4:19 pm
Location: New York
Contact:

Re: restart process if it reaches over x amount of memory

Post by bfmradio »

Oleg wrote: Mon Nov 04, 2024 1:53 pm What process are you speaking of?
One of computers have memory leak. Exporer.exe gets to 1,5-2 gb and the broadcast software starts to choke.

I need this to be restarted when it reaches say 100mg
Post Reply