lowleveldesign / process-governor

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

Limit the processes of 'GoogleDriveFS' max mermory failed #32

Closed billy8407 closed 2 years ago

billy8407 commented 2 years ago

Hi, I'm using the exe fille of the release version 2.9-1 , my desktop is win10 professional x64, but it failed to limit the max memory for particular process.

here is the log:

C:\Users\billy\Downloads\procgov>procgov64 --maxmem 200M GoogleDriveFS.exe --debugger ERROR: The system cannot find the file specified (0x80004005)

C:\Users\billy\Downloads\procgov>procgov64 --maxmem 200M 13296 --debugger ERROR: The system cannot find the file specified (0x80004005)

thanks!

billy8407 commented 2 years ago

Hi, the program started successfully after added the target file path but it didn't decrease the memory. image

thanks!

billy8407 commented 2 years ago

And I found out if run the program with pid, google drive will spawn the new exe to leave the program constraint.

lowleveldesign commented 2 years ago

Hi, few things to note:

So your final command line should look as follows:

procgov64 -r --maxmem 1000M "C:\Program Files\Google\Drive File Stream\54.0.3\GoogleDriveFS.exe

I hope it will work, but I have never tested procgov with GoogleDriveFS.

billy8407 commented 2 years ago

Hi, thanks for the reply! it works really fine after added parameter -r

lowleveldesign commented 2 years ago

Great, thanks for letting me know!