Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working as expected #57

Open
Ansarullah-Md-A opened this issue Jul 19, 2023 · 2 comments
Open

Not working as expected #57

Ansarullah-Md-A opened this issue Jul 19, 2023 · 2 comments
Assignees
Milestone

Comments

@Ansarullah-Md-A
Copy link

Hi guys,

procgov64 --nowait -c 5 -- "C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_11.2210.0.0_x64__8wekyb3d8bbwe\CalculatorApp.exe"

.\procgov64.exe --maxmem 10M "C:\Program Files\WindowsApps\Microsoft.WindowsCalculator_11.2210.0.0_x64__8wekyb3d8bbwe\CalculatorApp.exe"

I have executed the above commands to Limit the Windows Calculator app to take only 5% CPU Usage and 10MB RAM, and when I testing its not working..

I want to set a CPU and Memory Limit to the Calculator APP, and some other windows process,

Any help appreciated.

Thanks
Ansarullah

@lowleveldesign
Copy link
Owner

Calculator is a "modern" application and those are currently unsupported by procgov. I have plans to do some work on this type of apps, but I can't promise when it will be ready.

@lowleveldesign
Copy link
Owner

In the meantime, you may set limits on processes that are already running. So start Calculator normally and then attach procgov using its PID, for example: procgov64 --maxmem 30M -p 1234. Remember, though, that the limit you set must be realistic. If Calculator uses 20M on start and you try to set its limit to 10M, it will crash.

@lowleveldesign lowleveldesign added this to the v3.1 milestone Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants