« Return to Thread: Possible memory leak in eXist

Re: Possible memory leak in eXist

by Marian Teodorescu :: Rate this Message:

Reply to Author | View in Thread

Hello,

We used the 1.2.1 release of eXist and the problem with the registered update listeners persists. However we have isolated the source of the unsubscribed update listeners. By running the following xquery you can see that there is still a registered update listener after the xquery completion. Each run of the xquery adds an new update listener in the log file. The problem seems to be caused by this line: "<xu:variable name="record" select="document (concat('/db/tmp/' , '{$ID}' ,'.xml'))/TEST"/>". The registered update listeners can be observed on the eXist log on debug.
Will you please fix this as soon as possible?

let $ID := 'test'
let $xupdate := <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate">
             <xu:variable name="record" select="document (concat('/db/tmp/' , '{$ID}' ,'.xml'))/TEST"/>
             <xu:append select="$record">
                <NAME>recordName</NAME>
             </xu:append>
            </xu:modifications>

let $collectionPath := "/db/tmp"
let $rez := xmldb:update($collectionPath, $xupdate)
return $rez

Marian

 « Return to Thread: Possible memory leak in eXist

LightInTheBox - Buy quality products at wholesale price