Improvement November 18, 2026

Higher action memory limits for Node runtime

David Winer

David Winer

Published on November 18, 2026

Overview

On Convex 1.51.0 and higher you can now opt into a higher memory limit for Node actions (2 GiB).

Node actions run with 512 MiB of memory by default. To give them more, set node.defaultMemoryMb to 2048. The setting applies to every Node action in the deployment, and they bill action compute at that size. Convex runtime actions keep their own limits.

Read more in the docs.

Feature Details

#304
Higher Action Memory Limits

Certain workloads like generating a PDF or processing/zipping larger files are currently impossible with the low memory limits on actions. It would be ideal to at least have the option to specify the memory limit on actions (ideally per action like AWS Lambda). Even 1GB would be better than nothing, but in my experience, 2-3GB seems to be the sweet spot for larger workloads. Even if this was limited to Node, that would be acceptable. One example is using react-pdf to generate a PDF with images for a large export. We currently have to use a lot of loops, approximate memory usage carefully, limit the number of a pages per PDF, split into multiple PDFs and optimize images to the point where they are blurry just to fit a reasonable amount if information in a media-rich PDF.

570 (24)
Completed