{"action":"created","issue":{"url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/113","labels_url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/113/comments","events_url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/113/events","html_url":"https://github.com/andrewrk/node-multiparty/issues/113","id":95644418,"number":113,"title":"Memory leakage","user":{"login":"csharathreddy","id":6079501,"avatar_url":"https://avatars.githubusercontent.com/u/6079501?v=3","gravatar_id":"","url":"https://api.github.com/users/csharathreddy","html_url":"https://github.com/csharathreddy","followers_url":"https://api.github.com/users/csharathreddy/followers","following_url":"https://api.github.com/users/csharathreddy/following{/other_user}","gists_url":"https://api.github.com/users/csharathreddy/gists{/gist_id}","starred_url":"https://api.github.com/users/csharathreddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csharathreddy/subscriptions","organizations_url":"https://api.github.com/users/csharathreddy/orgs","repos_url":"https://api.github.com/users/csharathreddy/repos","events_url":"https://api.github.com/users/csharathreddy/events{/privacy}","received_events_url":"https://api.github.com/users/csharathreddy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-17T12:06:31Z","updated_at":"2015-08-10T13:36:14Z","closed_at":null,"body":"\r\n    \r\n    form.on('part', function(part) {\r\n      if (!part.filename) return;\r\n        var size = part.byteCount;\r\n        fileName = part.filename;\r\n        console.log('filename:'+fileName);\r\n        console.log('size:'+size);\r\n        randomFilename = UUID+'.'+fileName.split('.').pop();\r\n        path = \"./ContentCache/\"+randomFilename;\r\n        inputFile = fs.createWriteStream(path);\r\n        // part.on('data', function(chunk){\r\n        //    //console.log('got %d bytes of data', chunk.length);\r\n        //    console.log(util.inspect(process.memoryUsage()));\r\n        //    inputFile.write(chunk); \r\n        //    //inputFile.uncork(); \r\n        // });\r\n        part.pipe(inputFile);\r\n        inputFile.on('finish', function(){\r\n            console.log('Local: Upload Successfull..!');\r\n            res.send({msg: \"Local: Successfully Uploaded!\", objectId: req.query.objectId}); \r\n            encodingModule.getMetadata(path,function(data){   \r\n                 parseApp.update('ContentFile', req.query.objectId, {'fileId':randomFilename, 'videoCodec':data.streams[0].codec_name, 'videoBitrate':data.format.bit_rate, 'audioCodec':data.streams[1].codec_name, 'audioBitrate':data.streams[1].bit_rate, 'resolutionX':data.streams[0].width, 'resolutionY':data.streams[0].height}, function(err,response){\r\n                    if(err){\r\n                        console.log(\"metadata:error updating object\");\r\n                    }\r\n                    console.log(response);\r\n                 }); \r\n            });     \r\n            videoQueue.add({video: path, filename:randomFilename, objectId:req.query.objectId});    \r\n        });\r\n    });\r\n    \r\n    //Parse incoming nodejs request\r\n    form.parse(req);\r\n\r\nHere,when I tried to upload file of size >30GB, RAM uasge increases from 10% to 98%.After reaching 98% memory doesnt get freed up after file upload completes.Is there size limit for multiparty?"},"comment":{"url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/comments/129457481","html_url":"https://github.com/andrewrk/node-multiparty/issues/113#issuecomment-129457481","issue_url":"https://api.github.com/repos/andrewrk/node-multiparty/issues/113","id":129457481,"user":{"login":"csharathreddy","id":6079501,"avatar_url":"https://avatars.githubusercontent.com/u/6079501?v=3","gravatar_id":"","url":"https://api.github.com/users/csharathreddy","html_url":"https://github.com/csharathreddy","followers_url":"https://api.github.com/users/csharathreddy/followers","following_url":"https://api.github.com/users/csharathreddy/following{/other_user}","gists_url":"https://api.github.com/users/csharathreddy/gists{/gist_id}","starred_url":"https://api.github.com/users/csharathreddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csharathreddy/subscriptions","organizations_url":"https://api.github.com/users/csharathreddy/orgs","repos_url":"https://api.github.com/users/csharathreddy/repos","events_url":"https://api.github.com/users/csharathreddy/events{/privacy}","received_events_url":"https://api.github.com/users/csharathreddy/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T13:36:14Z","updated_at":"2015-08-10T13:36:14Z","body":"Testcase provided by @silverwind  and mine is similar.I have posted just uploading part of code.Use @silverwind test case to test."}}