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

Bala Kolla commented on LUCENE-6842:
------------------------------------

I agree. We need to fix our indexing. It's definitely not a normal scenarios. I 
was looking for a quick a way to limit the damage this is doing to the heap but 
I agree with your assessment that we are not using the way the Lucene is 
intended for.
Was hoping a way to limit the impact of this many fields and as per the 
feedback its not possible. I think even if we somehow fix this issue of loading 
field info's we might get into other issues and if possible fix the core issue 
of why we have many fields.
I am working on it with my team and will get back to you on what I find. Thanks 
for your help and feedback. 

> No way to limit the fields cached in memory and leads to OOM when there are 
> thousand of fields (thousands)
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-6842
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6842
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/search
>    Affects Versions: 4.6.1
>         Environment: Linux, openjdk 1.6.x
>            Reporter: Bala Kolla
>         Attachments: HistogramOfHeapUsage.png
>
>
> I am opening this defect to get some guidance on how to handle a case of 
> server running out of memory and it seems like it's something to do how we 
> index. But want to know if there is anyway to reduce the impact of this on 
> memory usage before we look into the way of reducing the number of fields. 
> Basically we have many thousands of fields being indexed and it's causing a 
> large amount of memory being used (25GB) and eventually leading to 
> application to hang and force us to restart every few minutes.



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