[ 
https://issues.apache.org/jira/browse/SOLR-7843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14969705#comment-14969705
 ] 

ASF subversion and git services commented on SOLR-7843:
-------------------------------------------------------

Commit 1710079 from sha...@apache.org in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1710079 ]

SOLR-7843: DataImportHandler's delta imports leak memory because the delta keys 
are kept in memory and not cleared after the process is finished

> Importing Deltal create a memory leak
> -------------------------------------
>
>                 Key: SOLR-7843
>                 URL: https://issues.apache.org/jira/browse/SOLR-7843
>             Project: Solr
>          Issue Type: Bug
>          Components: contrib - DataImportHandler
>    Affects Versions: 5.2.1
>            Reporter: Pablo Lozano
>            Assignee: Shalin Shekhar Mangar
>              Labels: memory-leak
>             Fix For: 5.4, Trunk
>
>
> The org.apache.solr.handler.dataimport.SolrWriter is not correctly cleaning 
> itself after finishing importing Deltas as the "Set<Object> deltaKeys" is not 
> being cleaned after the process has finished. 
> When using a custom importer or DataSource for my case I need to add 
> additional parameters to the delta keys.
> When the data import finishes the DeltaKeys is not set back to null and the 
> DataImporter, DocBuilder and the SolrWriter are mantained as live objects 
> because there are being referenced by the "infoRegistry" of the SolrCore 
> which seems to be used for Jmx information.
> It appears that starting a second delta import did not freed the memory which 
> may cause on the long run an OutOfMemory, I have not checked if starting a 
> full import would break the references and free the memory.
> An easy fix is possible which  would be to add to the SolrWriter "deltaKeys = 
> null;" on the close method.
> Or nullify the writer on DocBuilder after being used on the method execute();



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to