Shared memory (/dev/shm)

Shared memory (/dev/shm) allows Linux programs to efficiently pass data between each other. When one program creates a memory portion, another one can access it to speed up its processes.

Until recently, the value of shm_size in build containers and microservices was set to 64MB by default. This could cause some issues such as browser crashing, especially with e2e tests running headless Chrome or Selenium microservices.

All commands listed in the article must be run as root.

Shared memory values

Starting with version 2.1.18, the shm_size value for build containers and microservices in the cloud plans is based on the amount of RAM in the chosen plan.

shm_size = RAM / 8

In Buddy On-Premises the default value remains 64MB. If required, you can change it through the Buddy CLI:

  1. Sign in to the machine where Buddy Enterprise is installed.
  2. Enter configuration settings by entering

     buddy configure$
  3. Go to 7. Build memory limit.
  4. Press u to update the value and press Enter to save changes.
  5. Restart the application to apply changes.

Adjusting memory limitsAdjusting memory limits

Last modified on January 24, 2023

Questions?

Not sure how to configure a pipeline for your process? Reach out on the live-chat or contact support

Get Started

Sign up for free and deploy your project in less than 10 minutes.