• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Troubleshooting the “Cap Memory of Process” Script from ControlUp Community

Posted on May 29, 2024

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
Topics: Microsoft Windows, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..