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 leaks when used multiple times in a loop #1

Open
dev-aman-gupta opened this issue Apr 14, 2017 · 0 comments
Open

Memory leaks when used multiple times in a loop #1

dev-aman-gupta opened this issue Apr 14, 2017 · 0 comments

Comments

@dev-aman-gupta
Copy link

Hi,

base64Img.requestBase64(url, function(err, res, body) {
//using body for image processeing
});

When i use this module to covert the url into Data URI, it works fine with as many images but the problem is once the iteration is complete it does not release the memory it used to store the data of the image.
Is there any way where we can delete all the used memory and then move into next iteration of the loop.

P.S. After processing somewhat around 80-100 images, it makes nodejs process to exceed memory upto 1.7 GB

Please help!!!

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

1 participant