Thursday, 6 June 2019

Is a certain growth in memory usage for Node normal or is this already a Memory Leak?

I am fiddling around with a fairly simple Node JS script. It loads images in Raw-Camera-Formats in, converts them to JPG and saves those JPEGs to the disk. Now i understand that image-processing is a fairly cpu-heavy task (and propably memory-thirsty aswell). i am observing the memory-usage of the node process with the Activity Monitor from Mac OS. Everytime I start processing an image the usage goes from 60mb to ~300mb the first time, then it settles to ~260mb. On the second run, without restarting the process, it grows to something like 500mb and then drops to something like 380mb and so on and so on... it always grows when processing a new image, then settles to a lower usage-amount. but still, steady growth.is this already a memory leak or is a certain rise of memory-usage normal up until a certain threshold where it gets cleaned again?​thanks for any intel!

Submitted June 06, 2019 at 07:42PM by maxtime23

No comments:

Post a Comment