I am using isaacs' SAX to parse a huge xml file. Also recommended by La Gentz.
The process uses about 650M of memory, how can I reduce this or allow node to use even more.
FATAL ERROR: CALL_AND_RETRY_0 Allocation failed - process out of memory
My XML file is larger than 300M it could grow to 1GB.
memory_limit
in your .ini file and change the value to allow for the largest file you expect to handle. – Cottonyparser.write(file_buf.toString('utf8'), lenght).close();
– Stagy