meta data for this page
  •  

This is an old revision of the document!


Firefox

Disable Detachable Tabs in Mozilla Firefox

  • `about:config`
  • `browser.tabs.allowTabDetach`

limit memory usage

cgroups

systemd

/usr/local/bin/firefox
#!/bin/bash
systemd-run --user -G --scope --unit=run-firefox -p OOMPolicy=continue -p MemoryMax=2G -p MemorySwapMax=2G -p "CPUQuota=200%" /usr/bin/firefox "$@"

See MemoryMax

Verify limits:

systemctl list-units --user --type scope
systemctl status --user run-firefox.scope
 
 Memory: 201.3M (max: 2.0G swap max: 2.0G available: 1.8G)

firejail

sudo apt install firejail
 
firejail --noprofile --rlimit-as=5g firefox
       --rlimit-as=number
              Set the maximum size of the process's virtual memory (address space) in bytes.  Use k(ilobyte), m(egabyte) or g(igabyte) for size suffix (base 1024).

Using_Firejail_by_default