• Post Reply Bookmark Topic Watch Topic
  • New Topic

handling large xml files  RSS feed

 
Nidheesh Krishna
Ranch Hand
Posts: 62
Java MySQL Database Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
while working with a xml file with size > 100mb, got an error as follows,
11:20:05,495 ERROR [STDERR] java.lang.OutOfMemoryError: Java heap space
11:20:05,496 ERROR [STDERR] at java.util.Arrays.copyOf(Arrays.java:2367)
11:20:05,496 ERROR [STDERR] at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
11:20:05,496 ERROR [STDERR] at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
11:20:05,496 ERROR [STDERR] at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:587)
11:20:05,496 ERROR [STDERR] at java.lang.StringBuffer.append(StringBuffer.java:332)
11:20:05,496 ERROR [STDERR] at java.io.StringWriter.write(StringWriter.java:77)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.IndentPrinter.flushLine(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.IndentPrinter.breakLine(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.IndentPrinter.breakLine(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
11:20:05,496 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.XMLSerializer.serializeElement(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serializeNode(Unknown Source)
11:20:05,497 ERROR [STDERR] at org.apache.xml.serialize.BaseMarkupSerializer.serialize(Unknown Source)

i am currently working with fedora21.
can anyone suggest solution for this?
 
Salil Wadnerkar
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to post your code for us to see - not just the exception stack trace.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!