Chrome Flags Reference

Chrome command line switches and startup flags for automation, headless mode, and debugging.

--disable-dev-shm-usage

What does --disable-dev-shm-usage do?

The /dev/shm partition is too small in certain VM environments, causing Chrome to fail or crash (see http://crbug.com/715363). Use this flag to work-around this issue (a temporary directory will always be used to create anonymous shared memory files).

Usage

CLILaunch Chrome with --disable-dev-shm-usage using CLI

chrome --disable-dev-shm-usage

PuppeteerLaunch Chrome with --disable-dev-shm-usage using Puppeteer

const browser = await puppeteer.launch({
  args: ['--disable-dev-shm-usage']
});

PlaywrightLaunch Chrome with --disable-dev-shm-usage using Playwright

const browser = await chromium.launch({
  args: ['--disable-dev-shm-usage']
});

SeleniumLaunch Chrome with --disable-dev-shm-usage using Selenium

from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('--disable-dev-shm-usage')

driver = webdriver.Chrome(options=options)

Build Conditions

LINUX