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

Cyrille Roy commented on SOLR-2927:
-----------------------------------

I have able to reproduce this issue patching the code to throw an exception in 
SolrCore in branch 4_2 in constructor line 875
...
      resourceLoader.inform(resourceLoader);   
      //DO NOT COMMIT THIS:
      if(!"metadata".equals(name)) throw new RuntimeException("test exception");
 ...

you can then curl any core
$curl "http://localhost:xxx/solr/CORE_NAME/select?q=*:*";

open a jconsole and you will see the leaking mbean named "solr/CORE_NAME"

> SolrIndexSearcher's register do not match close and SolrCore's closeSearcher
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-2927
>                 URL: https://issues.apache.org/jira/browse/SOLR-2927
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 4.0-ALPHA
>         Environment: JDK1.6/CentOS
>            Reporter: tom liu
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 4.9, Trunk
>
>
> # SolrIndexSearcher's register method put the name of searcher, but 
> SolrCore's closeSearcher method remove name of currentSearcher on 
> infoRegistry.
> # SolrIndexSearcher's register method put the name of cache, but 
> SolrIndexSearcher's close do not remove the name of cache.
> so, there maybe lost some memory leak.



--
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