Author Topic: Possible to limit per-process memory usage?  (Read 245 times)

Offline Coldblackice

  • Member++
  • ****
  • Posts: 123
  • Gender: Female
Possible to limit per-process memory usage?
« on: November 10, 2021, 09:51:25 AM »
Is there a way to limit a particular program's memory usage, preventing a program from getting a "blank check" to expand its memory usage until system RAM is nearly maxed? This is particularly a common occurrence with web browsers, when using lots of tabs.

I looked around in the settings but couldn't find this, just auto-trimming/purging.

Offline Jeremy Collake

  • Administrator
  • Member#
  • *****
  • Posts: 5414
  • Gender: Male
  • The Lasso
    • Bitsum
Re: Possible to limit per-process memory usage?
« Reply #1 on: November 10, 2021, 01:58:56 PM »
You'd have to use a Watchdog rule to restart the offending process. Forcibly denying memory allocation would simply cause the application to crash, so there can be no externally imposed limit on virtual memory consumption, and the best that can be done to limit RAM usage is via the Working Set Trim.
Software Engineer. Bitsum LLC.

Offline Coldblackice

  • Member++
  • ****
  • Posts: 123
  • Gender: Female
Re: Possible to limit per-process memory usage?
« Reply #2 on: November 11, 2021, 03:36:23 AM »
Got it, thanks!