Menu

#8 OutOfMemory Exception using an sx:subtreeRecordReader

open
nobody
None
5
2011-03-18
2011-03-18
KKK
No

Hi!

I am having trouble with a huge xml-file (about 650 MB) including
round about 1.000.000 million records which i want to convert into
a flatFile.

servingXML aborts with an OutOfMemory-Exception because running out of java heap space...but i thought, servingXML uses a streaming architecture, that doesn't allocate java heap space for a whole file but only for the currently processed record...

My servingXML-resource works fine if try it with an XML-file of only 100.000 records...

What can i change in my resources-file to solve this problem?
Is there any suggestion for processing those large xml-files?
(for Details: see attachements)

Thank you very much in advance.

Kind regards
K. Krauthausen

Discussion

  • KKK

    KKK - 2011-03-18

    servingXML resource

     
  • KKK

    KKK - 2011-03-18

    java exception that is raised while processing 1.000.000 records

     
  • KKK

    KKK - 2011-03-18

    short example xml-source file to be converted (only two records instead of 1 million)

     
  • KKK

    KKK - 2011-03-18
    • summary: OutOfMemory Exception using a sx:subtreeRecordReader --> OutOfMemory Exception using an sx:subtreeRecordReader
     

Log in to post a comment.