Skip to content

Instantly share code, notes, and snippets.

@szaranger
Last active August 8, 2022 03:59
Show Gist options
  • Save szaranger/64520dbc66403b87c8b22c8b73c3f002 to your computer and use it in GitHub Desktop.
Save szaranger/64520dbc66403b87c8b22c8b73c3f002 to your computer and use it in GitHub Desktop.
const http = require('http');
const heapdump = require('heapdump');
function Bigata() {
const mem = Array(1000000).join('a');
}
const leak = [];
const server = http.createServer(function(request, response) {
if(request.uri = '/') {
// leak.push(new Bigdata);
response.writeHead(200, { "Content—Type": "text/html" });
response.end('Hello World!');
};
});
server.listen(3000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment