You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may download the latest version binaries from the [release page](https://github.com/lowleveldesign/process-governor/releases) or install it with [Chocolatey](https://chocolatey.org/) or [winget](https://learn.microsoft.com/en-us/windows/package-manager/winget/):
40
42
@@ -44,7 +46,8 @@ choco install procgov
44
46
winget install procgov
45
47
```
46
48
47
-
## Understanding procgov run modes
49
+
Understanding procgov run modes
50
+
-------------------------------
48
51
49
52
### The command-line application mode (default)
50
53
@@ -64,7 +67,8 @@ The ProcessGovernor service monitors starting processes and applies limits prede
64
67
65
68
To uninstall the service, use the **--uninstall** switch. The service will be removed when you remove the last saved configuration. If you want to remove all saved procgov data, along with the service, use the **--uninstall-all** switch.
66
69
67
-
## Applying limits on processes
70
+
Applying limits on processes
71
+
----------------------------
68
72
69
73
### Setting limits on a single process
70
74
@@ -102,7 +106,8 @@ Then we run procgov again with the new CPU limit - procgov will update the exist
102
106
procgov.exe --nowait -c 4 -p 1234
103
107
```
104
108
105
-
## Available process constraints
109
+
Available process constraints
110
+
-----------------------------
106
111
107
112
### Limit memory of a process
108
113
@@ -201,7 +206,8 @@ With the **--timeout** option you may define the maximum time (clock time) the p
201
206
202
207
The **--process-utime** and **--job-utime** options allow you to set a limit on the maximum user-mode execution time for a process (with the **--recursive** option also all its children) or a job. The latter case will make sense with the **--recursive** option as it will set a limit on the total user-mode execution time for the process and its children.
Keep in mind that in Windows, you can't add new privileges to the process token. You may only enable existing ones. You may check the available process privileges in Process Hacker or Process Explorer. Check the documentation for a given privilege to learn how to make it available for a given user (for example, you may need to update group policies).
236
242
237
-
## Contributions
243
+
### Deep-freeze processes (experimental)
244
+
245
+
You may use the --freeze and --thaw options to control execution of processes managed by procgov jobs. When launching a new process with the --freeze option, it will remain in a suspended state that occurs even earlier than when using the [CREATE_SUSPENDED flag](https://learn.microsoft.com/en-us/windows/win32/procthread/process-creation-flags). This means that even if there are missing imports, the process won't fail - instead, the main image will be loaded into memory, allowing for any necessary fixes to be made.
246
+
247
+
Contributions
248
+
-------------
238
249
239
250
Below you may find a list of people who contributed to this project. Thank you!
240
251
241
252
- @rowandh - an issue with the WS limit not being set
242
253
- @beevvy - an issue report and a fix for a bug with the environment variables
243
254
- @weidingerhp - an idea of environment variables for a process and CLR profiler setup
244
255
245
-
## Links
256
+
Links
257
+
-----
246
258
247
259
- **2013.11.21** - [Set process memory limit with Process Governor](http://lowleveldesign.wordpress.com/2013/11/21/set-process-memory-limit-with-process-governor)
248
260
- **2016.10.21** - [Releasing wtrace 1.0 and procgov 2.0](https://lowleveldesign.wordpress.com/2016/10/21/releasing-wtrace-1-0-and-procgov-2-0/)
0 commit comments