From: SourceForge.net <no...@so...> - 2009-01-08 20:43:53
|
Bugs item #2448140, was opened at 2008-12-19 10:25 Message generated for change (Comment added) made by gommma You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=2448140&group_id=47439 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Bug Group: None >Status: Pending >Resolution: Invalid Priority: 5 Private: No Submitted By: Kitty Feng (kittyfeng) Assigned to: Sébastien Le Callonnec (slecallonnec) Summary: OutofMemory when export BLOB type data(Version2.4.1) Initial Comment: In my oracle10g db, there are some BLOB type data, about 30MB, when i export it with thesecode. FlatXmlDataSet.write (partialDataSet, new FileOutputStream (targetDirectory + "/" + tableName + ".xml")); Error below happens: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.io.ByteArrayOutputStream.toByteArray(ByteArrayOutputStream.java:136) at org.dbunit.dataset.datatype.BinaryStreamDataType.getSqlValue(BinaryStreamDataType.java:76) at org.dbunit.database.ForwardOnlyResultSetTable.getValue(ForwardOnlyResultSetTable.java:104) at org.dbunit.dataset.DefaultTable.addTableRows(DefaultTable.java:139) at org.dbunit.database.CachedResultSetTable.<init>(CachedResultSetTable.java:62) at org.dbunit.database.CachedResultSetTable.<init>(CachedResultSetTable.java:54) at org.dbunit.database.CachedResultSetTableFactory.createTable(CachedResultSetTableFactory.java:62) at org.dbunit.database.DatabaseDataSet.getTable(DatabaseDataSet.java:294) at org.dbunit.dataset.filter.SequenceTableIterator.getTable(SequenceTableIterator.java:77) at org.dbunit.dataset.stream.DataSetProducerAdapter.produce(DataSetProducerAdapter.java:83) at org.dbunit.dataset.xml.FlatXmlWriter.write(FlatXmlWriter.java:124) at org.dbunit.dataset.xml.FlatXmlDataSet.write(FlatXmlDataSet.java:290) ---------------------------------------------------------------------- >Comment By: gommma (gommma) Date: 2009-01-08 20:43 Message: Set to pending waiting for feedback... ---------------------------------------------------------------------- Comment By: gommma (gommma) Date: 2008-12-19 17:27 Message: Is this really a dbunit bug? I am not sure. Could you please try to increase the max-heapsize (I suggest 512m)? java -Xms<initial heap size> -Xmx<maximum heap size> Defaults are: java -Xms32m -Xmx128m Regards, mat ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=449491&aid=2448140&group_id=47439 |