Is it normal for a serverless function to use 18 MB to run?

Hi !

I’m in the process of migrating my site from Gatsby Cloud to Netlify, currently working on my serverless functions. I tested one of them, and on the first try, it failed because I hadn’t exported the handler properly, and it used 18MB of memory. I did another test, this time it partially succeeded, and it used a whole 79MB.

I’d like to know if that’s normal, especially for a function that failed and thus didn’t get to handle a significant amount of data. I would normally expect a call like that to consume mere KBs, not MBs. It’s not that I’m worried about busting limits (not yet anyways) but still strikes me as a lot.

(For what it’s worth, the function’s purpose is to make an API call to Hubspot. If successful it returns a pretty hefty object, but nothing remotely close to MBs worth of data.)

Thank you !

That’s RAM. I’d say 79 MB RAM to run a Node.js app is fairly low and normal.

That makes a lot of sense. Thank you !