Subject:Java Heap Space error Author:Ivan Pedruzzi Date:01 Jul 2008 01:01 AM
The original query seems works fine under Saxon 9.x, I was able to query a folder with 180 MB xml files
See if this small change reduces the memory footprint
sum (
for $d in collection('file:///C:/ReplicationXml/TreeviewXML')
return
for $v in count($d//clinical[@auditflag="3" and @repeat_id="56"])
return $v
)