Hi,

it works for me, but I am using AEM ... I am not an expert in this area,
but looking at the code[1] it seems that it only reads existing data from
the repository. But if you use the existing Oak class, you should have that
editor already in place so that this data exists...

Maybe Thomas Mueller can help here?


[1]
https://github.com/apache/jackrabbit-oak/blob/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/counter/jmx/NodeCounter.java



Am Mi., 3. Sept. 2025 um 16:00 Uhr schrieb Raffaele Gambelli
<[email protected]>:

> Hi  Jörg,
>
> 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);
> ...
>
> then open visualvm or jconsole, attach to local jvm, see all available
> mbean and then try to run the operations showed in mbean, now I was
> interested in experimenting with nodeCounter which has two operations:
> getEstimatedNodeCount retunring long and getEstimatedChildNodeCounts which
> returns a String.
>
> I know that from visualvm or jconsole, mbean returning "complex" string,
> sometimes are not properly shown but I see a blank string, and the other
> operation which returns a long? It is very strange.
>
> As parameters I set the root node, so "/" and thats'all.
>
> Does it work for you?
>
>
> Cordiali saluti / Best regards,
>
> Raffaele Gambelli
> Application Architect
>
>
> ________________________________
> From: Jörg Hoh <[email protected]>
> Sent: Wednesday, September 3, 2025 2:50 PM
> To: [email protected] <[email protected]>
> Subject: Re: Unable to get values from mbean "nodeCounter"
>
> Hi Raffaele,
>
> what Oak version are you using? And when you connect via jconsole to that
> JVM, does it return a proper value?
>
> Jörg
>
> Am Mi., 3. Sept. 2025 um 09:19 Uhr schrieb Raffaele Gambelli
> <[email protected]>:
>
> > Hi all,
> >
> > as described here
> >
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjackrabbit.apache.org%2Foak%2Fdocs%2Fquery%2Fquery-troubleshooting.html&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006338943685%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=ukiteC6V5PMfkXabmojmevUSOtIZj0fxw3ZJYw1ASgc%3D&reserved=0
> <https://jackrabbit.apache.org/oak/docs/query/query-troubleshooting.html>
> I
> > wanted to get values from meabn nodeCounter but I'm not able to get
> them, I
> > see always a blank string as output.
> >
> > I tried either with visualvm or with jconsole, do you have any hints?
> >
> > Thanks
> >
> >
> > Cordiali saluti / Best regards,
> >
> > *Raffaele Gambelli*
> > *Application Architect*
> > *E*  *[email protected] <[email protected]>*
> > *M* +39 3371641888
> >
> > [image: CEGEKA]
> > Via Ettore Cristoni, 84
> > IT-40033 Bologna (IT), Italy
> > *T* +39 02 2544271
> > *
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006338972176%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=o0mXNVOSfdUyLdQCkKHepISky5EgGK6menXWAzwMZPE%3D&reserved=0
> <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cegeka.com%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006338984295%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=aEvx0c7f%2BP0E1JEtn7v37ZZ9tPuUz%2B3tObrAA8%2FQL54%3D&reserved=0
> <https://www.cegeka.com/>> *
> >
> >
> >
> >
> >
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_Pfjgxe5SOOkn66Ch%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006338997145%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=lEIhULkzQmbD1YSxyvybKKX8AX6laUWuEpUD6546C8A%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_Pfjgxe5SOOkn66Ch/go/uHO
> >>
> >
> > *Dichiarazione di Riservatezza
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_Pfjgxe5SOOkn66Ch%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339009064%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=2eWOwL91TMnFZ5vx6e9Eh1HVFIWe0DH0%2BOreb8PijT0%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_Pfjgxe5SOOkn66Ch/go/uHO
> >>*
> >
> > Le informazioni contenute nella mail sono riservate. Se si rende conto di
> > non essere il destinatario corretto della mail, la preghiamo di segnalare
> > l'errore al mittente e di cancellare immediatamente il messaggio.
> > L’utilizzo improprio di informazioni riservate può comportare sanzioni.
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_Pfjgxe5SOOkn66Ch%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339020903%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=2krbMCnxT1SzqPP2Ta0NWwb9dKoJ9bXa%2FOIqW%2B1l3tE%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_Pfjgxe5SOOkn66Ch/go/uHO
> >>
> >
> > Protezione dei dati personali
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_Pfjgxe5SOOkn66Ch%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339034284%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=AB47wERUoufPfckmZuXGFOPmZJn5X2PNjNBt1cGjYuU%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_Pfjgxe5SOOkn66Ch/go/uHO
> >>
> >
> > La informiamo che i suoi dati saranno trattati da Cegeka nel rispetto
> > delle disposizioni di legge applicabili (D. Lgs 196/2003 e Regolamento UE
> > 679/2016). Per maggiori dettagli può consultare le nostre informative
> > privacy al link
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.cegeka.com%2Fit%2Finformazioni-sulla-privacy&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339048076%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=uVfU3e%2Bjpp6ltkcY4cDlAGPSDxLJx9XQVxcOD%2F0jq0U%3D&reserved=0
> <https://www.cegeka.com/it/informazioni-sulla-privacy>.
> > <
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcampaigns.signature365.com%2Feu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj%2Fgen_Pfjgxe5SOOkn66Ch%2Fgo%2FuHO&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339063808%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=b8E06VdagHK5lSmjpEevqrd5ozu6PUSc4ehVHmYUb5A%3D&reserved=0
> <
> https://campaigns.signature365.com/eu-B2uKnHEFS98nwDUb-xnoLLs9dLzfDepbj/gen_Pfjgxe5SOOkn66Ch/go/uHO
> >>
> >
> >
> >
> > [image: Signature 365 Pixel]
> >
>
>
> --
>
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcqdump.joerghoh.de%2F&data=05%7C02%7CRaffaele.Gambelli%40cegeka.com%7C230be0e4a8464b88a8f508ddeae876e5%7C42151053019347aa9e81effd81f772cc%7C0%7C0%7C638925006339079936%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=H%2BT1gE4KatLqO1S2hwTZGRdU2UcvfVvYpcvvr7RsK5Q%3D&reserved=0
> <https://cqdump.joerghoh.de/>
>


-- 
https://cqdump.joerghoh.de

Reply via email to