Hello, and thank you for committing my previous patch. Here is a new one, together with a test case. unlike DefaultFileMarshaler, SimpleFlatFileMarshaler creates the whole resulting XML in memory. This causes out of memory exception. See the test case and the fix in the attachments. A note about the test. An input stream is built from a 3 lines file multiplied a million times and this reliably reproduces out of memory exception on the existing SimpleFileMarshaler. But when the marshaler is fixed so it does not run out of memory, it takes about 30 seconds to pass this test. The idea of the fix is to wrap the input stream, so the conversion is done line-by-line when (and if) the normalized message content is read. Attention is payed to keep backward compatibility so protected members behave the same. https://issues.apache.org/activemq/browse/SM-1349 |
sffm.patch
Description: Binary data
sffm_test.patch
Description: Binary data
