> ...surely if the SolrRequestParser *class* had a static var the Logger
> (instead of an instance var) that wouldn't have counted against the amount
> of memory being used by the SolrRequestParser ?

No, it wouldn't. We collect static fields from the suite class and
then traverse the object graph from these (but don't count static
fields again).

https://github.com/carrotsearch/randomizedtesting/blob/master/randomized-runner/src/main/java/com/carrotsearch/randomizedtesting/rules/StaticFieldsInvariantRule.java#L91

Perhaps I should add an option to dump the heaviest objects (not just
fields) from that total graph estimator.

D.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to