puppeteer-lambda-starter-kit icon indicating copy to clipboard operation
puppeteer-lambda-starter-kit copied to clipboard

Memory keeps on increasing on every request

Open Praveena0989 opened this issue 7 years ago • 3 comments

I have noticed my lambda function memory consumption keeps on increasing on every subsequent request. I have set my max memory of lambda function to 3008mb. The first call consumes around 400 MB and it will keep on increasing until 3008mb after that I will start getting timeout error more frequently.

Praveena0989 avatar Feb 25 '18 08:02 Praveena0989

I have the same problem - have you managed to solve it, perhaps?

leobudima avatar Mar 10 '18 04:03 leobudima

@leobudima only way I found is closing the browser after every request but which is not advisable as it will slow down the request processing time

Praveena0989 avatar Mar 10 '18 05:03 Praveena0989

@Praveena0989 - thanks - unfortunately, I'm sending requests with very small delays between, so I'm hitting the issue with Lambda not closing the browser every once in a while and it getting stuck, on top of the memory problem...

leobudima avatar Mar 10 '18 18:03 leobudima