CodeSandbox VM Slow or Out of Memory

Share
Workaround available Web Updated November 14, 2026How we research

Quick answer

A slow or crashing VM Sandbox can be given more memory by raising its specs under the CodeSandbox menu, then Virtual Machine. Legacy Pro plans must first convert to usage-based billing.

Most likely fix: Increase VM specs

How to fix it

Try these in order — the most common fix is first.

  1. 1. Increase VM specs

    1. Click the CodeSandbox icon in the editor
    2. Choose Virtual Machine
    3. Pick a larger spec and restart the VM
    Did this fix it?
  2. 2. Convert a legacy Pro plan

    1. Legacy Pro workspaces cannot change VM specs
    2. Convert the workspace to the usage-based Pro plan first, then change the specs
    Did this fix it?

Symptoms

Builds are slow, the dev server crashes or the VM restarts under load.

Why it happens

  • VM specs too small for the project
  • Legacy Pro plan cannot change VM specs

This guide also covers

  • codesandbox slow
  • codesandbox out of memory
  • codesandbox vm specs

Still not working?

If CodeSandbox keeps failing, you're not alone. See every CodeSandbox problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All slow, laggy or resource-hungry guides →

Other CodeSandbox errors

All 10 CodeSandbox errors and fixes →