We start sipp UAS this way:
$ sipp -i 127.0.0.1 -p 5000 -sf uas_183_cancel_no_487_request_terminated.xml
Then we start the test with:
$ node mc.js sip:127.0.0.1:5000
Then we will see node memory usage increasing:
takeshi:sip_js_test$ ps -o pid,user,%mem,command ax|grep node
12146 takeshi 3.4 node mc.js sip:127.0.0.1:5000
12602 takeshi 0.0 grep node
takeshi:sip_js_test$ ps -o pid,user,%mem,command ax|grep node
12146 takeshi 5.3 node mc.js sip:127.0.0.1:5000
12604 takeshi 0.0 grep node
takeshi:sip_js_test$ ps -o pid,user,%mem,command ax|grep node
12146 takeshi 12.0 node mc.js sip:127.0.0.1:5000
12749 takeshi 0.0 grep node
takeshi:sip_js_test$ ps -o pid,user,%mem,command ax|grep node
12146 takeshi 13.7 node mc.js sip:127.0.0.1:5000
12902 takeshi 0.0 grep node
And evetually it will crash:
76e80f6e-55bd-4a5d-9a0e-1b8c15a7ddea call got status=183
7b2d547c-2746-41f5-a564-4170c70834b7 Provisional. status=100
76e80f6e-55bd-4a5d-9a0e-1b8c15a7ddea call CANCEL got status=200
7b2d547c-2746-41f5-a564-4170c70834b7 call got status=183
<--- Last few GCs --->
[12146:0x311ad60] 514797 ms: Mark-sweep 1996.3 (2070.7) -> 1983.0 (2066.5) MB, 3463.2 / 0.0 ms (average mu = 0.192, current mu = 0.100) allocation failure scavenge might not succeed
[12146:0x311ad60] 518194 ms: Mark-sweep 1997.7 (2066.5) -> 1981.0 (2068.7) MB, 2932.7 / 0.0 ms (average mu = 0.165, current mu = 0.137) allocation failure scavenge might not succeed
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x1409219]
Security context: 0x3d52334c08d1 <JSObject>
1: open [0x194fe17a5091] [/mnt/ssd/work/src/git/brastel/sip_pstn_probe/node_modules/sip/sip.js:~840] [pc=0xd02bef0b395](this=0x194fe17a4021 <Object map = 0x104e2e260a59>,0x2aa1df127179 <Object map = 0x104e2e266729>,0x323d283259b1 <JSFunction (sfi = 0x3d7f9623d131)>)
2: next [0x323d283258f9] [/mnt/ssd/work/src/git/brastel/sip_pstn_probe/node_modules/sip/si...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0xa17c40 node::Abort() [node]
2: 0xa1804c node::OnFatalError(char const*, char const*) [node]
3: 0xb95a7e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xb95df9 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xd53075 [node]
6: 0xd53706 v8::internal::Heap::RecomputeLimits(v8::internal::GarbageCollector) [node]
7: 0xd5ffc5 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xd60e75 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xd6392c v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationType, v8::internal::AllocationOrigin, v8::internal::AllocationAlignment) [node]
10: 0xd2a34b v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationType, v8::internal::AllocationOrigin) [node]
11: 0x106c91e v8::internal::Runtime_AllocateInYoungGeneration(int, unsigned long*, v8::internal::Isolate*) [node]
12: 0x1409219 [node]
Aborted (core dumped)
takeshi:sip_js_test$
takeshi:sip_js_test$
Issue solved. See: kirm/sip.js#155