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

Adrien Grand commented on LUCENE-5773:
--------------------------------------

Tests fail on Lucene 3.x because there is a lot of small objects that take more 
memory than the codec. We could increase the number of indexed documents, but 
this would also slow down the test. Instead I think we can create a big an a 
large segment and only compare the differences in terms of RAM usage. This will 
avoid problems that are due to constant overhead and we will be able to reduce 
the error margin that we have today. So this will probably be a better test? 
I'll work on a patch to see if that works.

> Test SegmentReader.ramBytesUsed
> -------------------------------
>
>                 Key: LUCENE-5773
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5773
>             Project: Lucene - Core
>          Issue Type: Test
>            Reporter: Adrien Grand
>            Assignee: Adrien Grand
>            Priority: Minor
>         Attachments: LUCENE-5773.patch, LUCENE-5773.patch
>
>
> There have been cases where the memory reported by this API was larger than 
> the JVM heap size in the past so we should try to add some basic tests to it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to