Hi Raffaele,

On Wed, 2025-09-03 at 14:00 +0000, Raffaele Gambelli wrote:
> I'm using latest 1.84.0 and I do nothing special, I start my
> application where I configured Oak repository with mbean:
> 
> MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
> Oak oak = new Oak(ns).with(mbs);
> ...

You did not show the whole code, but I suspect you're missing some
components that create these estimates.

I think you should at least include

  .with(new InitialContent()) 

If that is too much for you because you want to use Oak without the JCR
stuff you can at least copy the counter index definition and add it to
your initialisation code.

FWIW, this is how we do it in Sling [1], it might help to compare with
your setup.

Hope this helps,

Robert

[1]:
https://github.com/apache/sling-org-apache-sling-jcr-oak-server/blob/2b2ad8acd4ec2f367bd90b08440ebfca2df12e56/src/main/java/org/apache/sling/jcr/oak/server/internal/OakSlingRepositoryManager.java#L127-L156

Reply via email to