lowleveldesign / process-governor

This application allows you to put various limits on Windows processes.
MIT License
626 stars 62 forks source link

--maxmem and --recursive - Limit for all child processes? #51

Closed crimcol closed 1 year ago

crimcol commented 1 year ago

Hello, not sure if I'm doing that correct. This is my command: procgov64 --maxmem=2048M --recursive --verbose "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\devenv.exe"

The goal is to make a memory limit 2048M for the entire Visual Studio process including all child processes. But it still exceeds the limit: image

Does it work different? or wrong parameters?

lowleveldesign commented 1 year ago

Hi, the option you're looking for is --maxjobmem=2G instead of --maxmem=2G. However, I'm not sure how VS will handle this. It may not function properly as its memory consumption is usually much higher :disappointed: