ehcache / sizeof

Configurable sizeOf engine for Ehcache
Apache License 2.0
105 stars 43 forks source link

Measure size of standard java collections #71

Closed catap closed 1 year ago

catap commented 1 year ago

Good day,

I've tried to use this library (version 0.4.0) on JDK17 and it seems work fine with one exception: it can't measure the standard collections like HashSet. deepSizeOf returns 32 bytes for example.

Is it know limitation or a bug?

It reports only one warning BTW:

WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
catap commented 1 year ago

and adding --add-opens java.base/java.util=ALL-UNNAMED solves mine issue.