nginx-gridfs icon indicating copy to clipboard operation
nginx-gridfs copied to clipboard

Memory leaks in current version

Open LNGi opened this issue 13 years ago • 4 comments

I try the latest version of nginx-gridfs, and I found after served about 2,500,000 file via gridfs, each nginx worker will eat up about 260MB of memory, and still increasing. but if I setup nginx to serve static file(a txt file on my disk), memory usage of each nginx worker aways stay at about 800KB event after serve more then 100,000,000 static files.

so i think there must be a memory leak somewhere in nginx-gridfs or mongo-c-driver. can someone fix this up?

LNGi avatar Aug 24 '11 10:08 LNGi

I confirm this issue. very strong memory leaks

bladeofsteel avatar Sep 19 '11 12:09 bladeofsteel

I've just merged abbat's fixes - can anybody confirm that that closes this issue?

mdirolf avatar Nov 18 '11 15:11 mdirolf

Ok, I'll give it a try next monday.

LNGi avatar Nov 18 '11 15:11 LNGi

Please, test situation when file length is zero or file is not exists in gridfs - possible patch is kiwanami/nginx-gridfs@6c5af6c2c19af67f0990474316a0d39c1c35b807

abbat avatar Nov 18 '11 22:11 abbat