This file has been truncated, but you can view the full file.
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 h = require('https') | |
| const options = { | |
| hostname: 'registry.npmjs.org', | |
| port: 443, | |
| protocol: 'https:', | |
| auth: '', | |
| method: 'GET', | |
| headers: { | |
| accept: ['application/vnd.npm.install-v1+json; q=1.0, application/json; q=0.8, */*'], |
This file has been truncated, but you can view the full file.
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
| Memcheck, a memory error detector | |
| Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
| Using Valgrind-3.16.0 and LibVEX; rerun with -h for copyright info | |
| Command: ./node test/parallel/test-worker-cleanexit-with-moduleload.js | |
| Thread 11: | |
| Invalid write of size 8 | |
| at 0x15B37B5: uv__async_io.part.1 (async.c:155) | |
| by 0x15C6575: uv__io_poll (linux-core.c:462) | |
| by 0x15B4127: uv_run (core.c:385) |
This file has been truncated, but you can view the full file.
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
| ================================================================================ | |
| ==== Node Report =============================================================== | |
| Event: Allocation failed - JavaScript heap out of memory, location: "Ineffective mark-compacts near heap limit" | |
| Filename: node-report.20180921.093347.106933.001.txt | |
| Dump event time: 2018/09/21 09:33:47 | |
| Process ID: 106933 | |
| Command line: ./node --max-old-space-size=10 oom.js | |
| Node.js v11.0.0-pre, glibc 2.17, 64 bit) |
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
| { | |
| "header": { | |
| "event": "Allocation failed - JavaScript heap out of memory", | |
| "location": "Ineffective mark-compacts near heap limit", | |
| "filename": "node-report.20180921.104557.33353.001.json", | |
| "dump_event_time": "2018/09/21 10:45:57", | |
| "process_id": "33353", | |
| "command_line": "./node --max-old-space-size=10 oom.js ", | |
| "node.js_version": "v11.0.0-pre", | |
| "glibc_version": "2.17", |
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
| var http = require('http') | |
| var string = 'http://localhost:25000' | |
| for(var count=0; count < process.argv[2]; count++) { | |
| http.get(string, (res) => { | |
| res.on('data', (d) => { | |
| }); | |
| res.on('end', () => { | |
| }) |
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
| var net = require('net') | |
| const DELIM = '*' | |
| const server = net.createServer((s) => { | |
| s.setNoDelay(true) | |
| s.on('data', (d) => { | |
| if (d.includes(DELIM)) { | |
| var index = d.indexOf(DELIM, 0) | |
| while (d.length) { | |
| const piece = d.slice(0, index) |
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
| sample gist |