Open ghost opened 5 years ago
You don't need a large string - just something a bit complex like this :-
$ node test-xmldom.js > jr.txt
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 01228A2E node::MakeCallback+3982
2: 0185BDE2 v8::internal::Heap::MaxHeapGrowingFactor+8146
When I'm trying to parse strings from 100+mb files I get out of memory error. And I don't get this error trying to parse files smaller than 100mb (approximately).
Code:
Output:
Node version: 10.13.0 OS: Windows 7 64 bit