XQuery runs out of memory
Added by Anonymous about 20 years ago
Legacy ID: #2810835 Legacy Poster: ffn04 (ffn04)
Hi, I have a rather large XML document (~115MB) that I'm running some queries on. When I run the query (the query is an XMark query), I receive the following error: Exception in thread "main" java.lang.OutOfMemoryError Apart from reducing my XML document size, is there any way to solve this problem? If not, is anyone aware of an XQuery processor that can handle such large files and at least XQuery 1.0? Thank you.
Replies (1)
RE: XQuery runs out of memory - Added by Anonymous about 20 years ago
Legacy ID: #2810938 Legacy Poster: Michael Kay (mhkay)
How much memory did you allocate to the Java VM? I would recommend starting with 5 times the document size. I.e. java -Xmx600m -Xms600m net.sf.saxon.Query ... Don't try this with less than 1Gb of real memory, unless you want to keep your paging file busy all night. Michael Kay http://www.saxonica.com/
Please register to reply