A user asked for help with the "Cap Memory of Process" community script, as it wasn’t capping the process as intended. Other users shared their experiences and suggested troubleshooting steps, including checking if the operating system enforces the maximum and using Process Explorer to monitor working set limits. The creator of the script has also tested it. A link to their blog post about a similar script was shared.
Read the entire ‘Troubleshooting the "Cap Memory of Process" Script from ControlUp Community’ thread below:
Hello all!! Any experience with using the "Cap Memory of Process" community script? we have a rogue process that we want to cap at 10GB. It’s not working and maybe im passing arguments incorrectly? any help appreciated.
hey Brandon. What are you using to determine if the script is working? The script limits the working set. That doesn’t mean that the process can’t allocate more memory. It just means that memory ends up in the page file.
@member im using the memory (working set0 and (private bytes)
i also have an email action as well as the "run the script" action. Im getting the email but the script wasn’t capping apparently
@member who wrote the script has tested it. See https://guyrleech.wordpress.com/tag/setprocessworkingsetsizeex/. But there are also suggestions out there that even with the QUOTA_LIMITS_HARDWS_MAX_ENABLE flag set (which the script sets), the operating system might not enforce the maximum. See https://community.osr.com/t/setprocessworkingsetsizeex-is-not-working-on-windows-server-2022-x64-os/57932/2
ok thank you i’ll dig into this further.
let you know what come of this. REALLY appreciate your reply @member
IIRC Process Explorer can show if hard working set limits are in place but I’m not currently in front of it too check sorry
@member WOAH i get THE MAN replying. WOOHOOO. 🙂 im reading your blog posts now. Im on #3 now. https://guyrleech.wordpress.com/2018/04/16/memory-control-script-capping-leaky-processes/
Thanks @member
Continue reading and comment on the thread ‘Troubleshooting the “Cap Memory of Process” Script from ControlUp Community’. Not a member? Join Here!
Categories: All Archives, ControlUp Scripts & Triggers