Skip to content

The JVM is preventing Ehcache from accessing the subgraph #73

@aghasemi

Description

@aghasemi

Hello,

I get this message when trying the sizeOf method:

The JVM is preventing Ehcache from accessing the subgraph beneath 'private final byte[] java.lang.String.value' - cache sizes may be underestimated as a result

, followed by a stack trace but then actually an estimated number. I suspect this has to do something with newer Java versions. I use Java 21.

Is there any possibility to avoid this issue?

Thanks for the work, by the way.

P.S. Another question: Does sizeOf work on a "class" that contains static Objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions