Hi Florian,
I tried the SAX2Count sample on the XML files generated by XMark (both the 115Mb and the 232Mb versions); in both cases the memory consumption was under 5Mb. Can you post the XML you are using?


Alberto

At 10.40 13/12/2004 +0100, [EMAIL PROTECTED] wrote:
I have noticed a problem using SAX2XMLReader in an application dealing with large XML files: memory consumption does not remain at the same level but rises at a constant rate. This can be easily reproduced using a large XML file with a sample application such as SAX2Count. SAX2Count memory consumption rose from ~3 mb to ~30 mb parsing a ~120 mb XML document (on win32). The document I used for testing purposes did not contain deeply nested elements.

I have validation turned off in my application and still encounter this problem so using validation should not cause the increasing memory consumption.

I would appreciate any advice on how to keep memory usage at a constant level using a Xerces SAX parser as my application is expected to handle arbitrarily large XML files.

Thank you,

Florian Brugger


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to