How can I store large amount of data from a database to XML (memory problem)?

前端 未结 4 657
情书的邮戳
情书的邮戳 2021-02-09 02:18

First, I had a problem with getting the data from the Database, it took too much memory and failed. I\'ve set -Xmx1500M and I\'m using scrolling ResultSet so that was taken care

4条回答
  •  盖世英雄少女心
    2021-02-09 03:02

    I have never encountered this usecase but I am pretty sure vtd-xml supports xml's of size more than 1 GB. It is worth checking out @ http://vtd-xml.sourceforge.net

    Or you can also follow all the below article series @ http://www.ibm.com/developerworks/ "Output large XML documents"

提交回复
热议问题