(for Mac OSX)
-
Open "Automator"
-
Create new Application.
-
Select "Run Shell Script" from "Actions".
-
Select your shell language (I selected '/bin/bash').
-
Paste below command.
open "/Applications/Google Chrome.app/" --args --renderer-process-limit=1
- Voila!
@DwarfFighterCleric
Using
man chromium
states that "Chromium has hundreds of undocumented command-line flags that are added and removed at the whim of the developers", which does seem to be true based on how they add and remove features without warning or public-facing documentation, so as a rule of thumb, it's probably best to not count on command-line flags sticking around.However, both the master branch of the current source code and an officially linked page that seems to be automatically generated from it still include
kRendererProcessLimit
/"renderer-process-limit"
, so this particular flag does still seem to be around:https://chromium.googlesource.com/chromium/src/+/refs/heads/master/content/public/common/content_switches.cc
https://peter.sh/experiments/chromium-command-line-switches/
(The second page has not, strictly speaking, been updated since August, but the logs for the source file don't show much activity since then in any case.)
You can find examples of how to toggle flags on your OS in the developer documentation:
https://www.chromium.org/developers/how-tos/run-chromium-with-flags
Additionally, Google seems to have added Chromium's native tab discarding feature (formerly accessible through
chrome://flags/#enable-tab-discarding
) to their extension API, so you could create, add, and configure a plugin like Auto Tab Discard to automatically unload pages depending on activity and memory use.