OOM: out of memory

How to troubleshoot OOM errors

An out of memory (OOM) error occurs when an instance runs out of RAM.

The first thing to check if you encounter this error is how much RAM is assigned to the problem instance. Do this by expanding the details of the instance and scrolling down to the "Limits" and "Requests" sections.

  • The Requests amount defines the amount of memory that is guaranteed to be available to the instance.

  • The Limits amount defines the amount of memory that the instance may not exceed.

You can read more about how resources are defined in the resources reference documentation.

To increase the amount of memory resources available for your instance, edit your Environment Configuration settings under the Settings tab.

View currently running processes using the top command

If you are debugging an OOM error, you can see what processes are running on an instance and how much memory each process is using by connecting to a terminal for that instance and running the top command.

Last updated