Using Dockerfile with DO App platform, we sometimes get BuildJobOutOfMemory.
We tried switching from basic to professional for each component, but that didn’t solve it.

How do I add more ram to the build process?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

Hello @amocsy,

The error indicates that you are running out of memory and should consider using a larger instance size for your App.

Here’s the documentation link on error codes:

https://www.digitalocean.com/docs/app-platform/references/error-codes/#deploy-errors

Let me know how it goes.
Regards,
Bobby

  • “The error indicates that you are running out of memory ”
    I figured as much.

    I found the documentation you linked, and it has this to say:

    “Your deploy failed because your container was out of memory.”

    This does answer the question:

    “ should consider using a larger instance size for your App”

    That said, I’m still curious if I could use a large instance for building the image and a smaller one for the running container.

  • I scaled to the largest instance size but I still had the same error.

  • Hi Bobby,

    Can we please get an update on this one? As scaling up to any larger one did not solve the issue.

    Thanks in advance.
    Kind Regards
    Laszlo Nagy (colleague of amocsy)

    • Hi there @nlaszlouk,

      Do you know on average how much memory is used to build the project locally on your local dev environments? If you’ve tried increasing the size of the component to a larger one and it still does not work, I could suggest reaching out to the DigitalOcean support team so that they could look into this for you further:

      https://www.digitalocean.com/support/

      Let me know how it goes!
      Regards,
      - Bobby.