Last active
August 8, 2022 03:59
-
-
Save szaranger/64520dbc66403b87c8b22c8b73c3f002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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