How to find Segment store size?
How to fetch the SEGMENT_REPO_SIZE from JMX console through programmatically.
(JMX console link: http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3DSEGMENT_REPO_SIZE%2Ctype%3DMetrics)
How to fetch the SEGMENT_REPO_SIZE from JMX console through programmatically.
(JMX console link: http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3DSEGMENT_REPO_SIZE%2Ctype%3DMetrics)
That's not really specific to AEM, but standard Java code.
MBeanServer mbs = java.lang.management.ManagementFactory.getPlatformMBeanServer;
ObjectName name = new ObjectName("org.apache.jackrabbit.oak:Metrics");
Object value = mbs.getAttribute(name,"Count");
System.out.println("Count = " + value.toString());
(please don't try to access this value via HTTP ... that's a guarantee to break.)
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.