When morpho or loadxml.html in metacat upload a xml document to metacat, it
allways stores the xml document in a parameter named "doctext". Servelet will
store this parameter name and value (xml documentment itself) into a hashtable.
And xml document will be stored as a String in memory. So if xml document is
big ( huge inline data in eml2 document), it will cause memory problem.
The option we can choose is, using a stream (or reader) connecting client side and servlet
directly, rather than transfer the xml document to a string. Our SAX parser wil
parse the stream.
Author Name: Jing Tao (Jing Tao) Original Redmine Issue: 1122, https://projects.ecoinformatics.org/ecoinfo/issues/1122 Original Date: 2003-07-29 Original Assignee: Jing Tao
When morpho or loadxml.html in metacat upload a xml document to metacat, it allways stores the xml document in a parameter named "doctext". Servelet will store this parameter name and value (xml documentment itself) into a hashtable. And xml document will be stored as a String in memory. So if xml document is big ( huge inline data in eml2 document), it will cause memory problem.
The option we can choose is, using a stream (or reader) connecting client side and servlet directly, rather than transfer the xml document to a string. Our SAX parser wil parse the stream.