sambaiz / puppeteer-lambda-starter-kit

Starter Kit for running Headless-Chrome by Puppeteer on AWS Lambda.
MIT License
580 stars 82 forks source link

Memory keeps on increasing on every request #15

Open Praveena0989 opened 6 years ago

Praveena0989 commented 6 years ago

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.

leobudima commented 6 years ago

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

Praveena0989 commented 6 years ago

@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

leobudima commented 6 years ago

@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...