[ 
http://jira.nuxeo.org/browse/NXP-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=58099#action_58099
 ] 

Radu Darlea commented on NXP-3968:
----------------------------------

The iterated query doesn't work (see NXP-3814). Collecting all the documents in 
a list leads to exhaustive memory consumption and in some case session time 
out. The mechanism of providing documents is based on session.getChildren() and 
retrieving the list of the versions for current document.
A new list containing usual documents goes through the documents base following 
the tree. A list is used instead of an iterator to be able to collect the 
documents on different levels of the tree. A recursive mechanism can't be used 
because of the pipe mechanism. The list contains at one moment in time: first 
the versions of the last usual document exported, then the children of last 
usual document exported, then the previous accumulated documents. Every 
exported document is removed from the list but still the list can grow quite 
large when the document have lot of versions and the branch holding the 
exported document has lots of children on many levels.

> Reduce the memory load when exporting documents
> -----------------------------------------------
>
>                 Key: NXP-3968
>                 URL: http://jira.nuxeo.org/browse/NXP-3968
>             Project: Nuxeo Enterprise Platform
>          Issue Type: Bug
>          Components: Installers / Admin tools
>    Affects Versions: 5.2 GA
>            Reporter: Radu Darlea
>            Assignee: Radu Darlea
>             Fix For: 5.2.1
>
>
> When large repository are exported through replication tool, the memory grows 
> extensively and for slow repositories the session expires. Avoid collecting 
> all the documents in a list.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to