lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <dawid.we...@gmail.com>
Subject Re: RamUsageCrawler
Date Thu, 06 Dec 2018 12:13:55 GMT
> It's entirely possible it fails to dig into Maps correctly with newer Java
> releases; maybe Dawid or Uwe would know?

We have removed all reflection from that class a while ago exactly
because of encapsulation issues introduced in newer Java versions.

https://github.com/apache/lucene-solr/blob/master/lucene/core/src/java/org/apache/lucene/util/RamUsageEstimator.java

I think you may be thinking of RamUsageTester which is in the test
framework and indeed accumulates only keys and values from iterables.
These methods are for tests only and are rough. You shouldn't rely on
them for accurate memory consumption accounting (instead, use the
Accountable interface).

Dawid


D.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message