Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory quota exceeding on heroku #31

Open
prashanthca opened this issue Oct 20, 2015 · 1 comment
Open

Memory quota exceeding on heroku #31

prashanthca opened this issue Oct 20, 2015 · 1 comment

Comments

@prashanthca
Copy link

Trying to use this sdk on heroku, where the memory limit is 512 MB on free dynos. Getting this error in the logs. The first few lines are application metrics, which indicate the memory usage, and the last two lines are the errors.

2015-10-20T18:32:41.148711+00:00 heroku[web.1]: 
source=web.1 dyno=heroku.42704105.f21ba872-0746-4bf5-be7c-d35b344955ea
sample#memory_total=518.14MB sample#memory_rss=120.08MB
sample#memory_cache=391.92MB sample#memory_swap=6.14MB
sample#memory_pgpgin=334805pages sample#memory_pgpgout=206288pages

2015-10-20T18:32:41.148711+00:00 heroku[web.1]: Process running mem=518M(101.2%)
2015-10-20T18:32:41.148711+00:00 heroku[web.1]: Error R14 (Memory quota exceeded)

What I'm basically trying to do in my app is download a file from a remote server and upload it to MEGA. This error occurs after the uploading starts. I've used memwatch to check for memory leaks, but there aren't any. I'm not sure how to approach this problem since I'm new to node.js. Would appreciate any help on this. Thanks in advance.

@edtechd
Copy link

edtechd commented Oct 15, 2016

The script loads all content to upload into memory, so if you want to upload a lot of data, memory quota will be exceeded.

I think it makes sense to rewrite uploading procedure to avoid buffering of the data, but I am not sure that it is possible.

Please let me know if you found another solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants