react-boilerplate icon indicating copy to clipboard operation
react-boilerplate copied to clipboard

heroku: Error R14 (Memory quota exceeded)

Open kareemaly opened this issue 10 years ago • 11 comments

I sometimes get this error when I try to deploy to heroku

Error R14 (Memory quota exceeded)
Process running mem=598M(116.8%)

So that happens because heroku dynos max. memory size is 512M. I think there's a memory leak somewhere on the npm build command ?

Thanks,

kareemaly avatar Jul 12 '16 12:07 kareemaly

Not 100% sure what this could be about, how big is your application?

mxstbr avatar Jul 13 '16 08:07 mxstbr

@mxstbr I'm not sure, I have tested with larger applications with other boilerplates and didn't have this problem.

I have commented out the offline plugin and the amount of memory used when I run npm run build decreased but still sometimes it fails on heroku

kareemaly avatar Jul 13 '16 10:07 kareemaly

That definitely shouldn't happen. Any idea how we can analyze this?

mxstbr avatar Jul 13 '16 10:07 mxstbr

I'm testing now on windows, I have cloned a fresh version of this repo, removed the npm run test from prebuild. And using windows memory resource monitor I can confirm that running npm run build takes up to 400MB with a fresh clone.

kareemaly avatar Jul 13 '16 11:07 kareemaly

@mxstbr I'll try removing some plugins and build, might find what is causing this memory leak.

kareemaly avatar Jul 13 '16 11:07 kareemaly

Thanks for digging in @kareem3d! Can't wait for your findings!

mxstbr avatar Jul 13 '16 12:07 mxstbr

Closing due to inactivity – if somebody else runs into this problem please let us know!

mxstbr avatar Sep 18 '16 12:09 mxstbr

I am experiencing the same issue, Error R14 (Memory quota exceeded). What was the fix to this?

cykeromens avatar Dec 21 '16 09:12 cykeromens

As am i...anyone know why this is happening?

acqajar avatar Jan 03 '17 18:01 acqajar

Same trouble here. Building a node.js app leads to same result.

cyrilchapon avatar Feb 16 '18 11:02 cyrilchapon

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar May 29 '18 02:05 lock[bot]