You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "William.Tang (JIRA)" <ji...@apache.org> on 2016/02/01 11:08:39 UTC

[jira] [Commented] (KYLIN-1390) report bug

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

William.Tang commented on KYLIN-1390:
-------------------------------------

Recently I encoutered an OOM issue due to the instance of 
org.apache.lucene.uninverting.FieldCacheImpl$SortedDocValuesCache comsumed much memory and can not been GC.

There is a property readerCache in the SortedDocValuesCahe, it is a weakhashmap with LeafReader as the key. In my case the key is exactly an instance of org.apache.lucene.index.SegmentReader.

The tricky is the org.apache.solr.core.CloserThread is always hold an strong reference of the readers of a core. The reference path is 
CloserThread->solrCore->standardDiretoryReader->SegmentReader->SegmentCoreReader.

The CloserThread is wait for shutdown signal and hold this string reference to the segmentReader, so it caused the readerCache can not been GC. 


> report bug
> ----------
>
>                 Key: KYLIN-1390
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1390
>             Project: Kylin
>          Issue Type: Bug
>          Components: Web 
>            Reporter: William.Tang
>            Assignee: Zhong,Jason
>




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