JCR Stats helps administrators understand how disk space is distributed throughout the JCR repository. It computes aggregated size and node-count statistics for any JCR subtree, renders an interactive flame graph, displays a hierarchical tree table, lists the largest items, and enables snapshot-based comparison to detect changes over time.
jcrStatsAdmin permissionA small admin-UI patch release. The JCR Stats admin page now scrolls vertically
when its content is taller than the screen, and the Saved executions history
is shown above the results. Drop-in upgrade from 2.1.2 — no API, permission, or
data changes.
/jahia/administration/jcrStats), still gated by the jcrStatsAdmin permission.JCR Stats appears in Jahia Administration under Server > System Health > JCR Stats, accessible at the URL /jahia/administration/jcrStatsExecution.
/sites)Resume-on-Remount: If you navigate away from the JCR Stats page while a computation is running and then return, the progress display resumes from the server's live status (elapsed time and visited count).
| Control | Purpose |
|---|---|
| Path input | Enter JCR path to analyze (e.g., /sites/digital, /) |
| Weight by dropdown | Switch between "Size (bytes)" and "Number of nodes" |
| Compute button | Submit analysis (or Ctrl+Enter) |
| Flamegraph tab | Visualize hierarchy; click a frame to zoom, breadcrumb to zoom out |
| Tree table tab | Browse complete tree with statistics |
| Largest items tab | Sorted list of top-N nodes by metric |
| Comparison tab | Load a baseline snapshot and view differences |
| Download button (flamegraph tab) | Save current snapshot as JSON |
| Upload button | Load a previously saved snapshot |
| Compare with… button (comparison tab) | Load a baseline for diff view |
Use the Download button to save the current tree data as a JSON file (jcr-stats-flamegraph-*.json). Use Upload to load a saved snapshot back into the UI. The comparison view then lets you load a baseline and see side-by-side diffs highlighting growth, shrinkage, and newly added paths.
MIT License
Copyright (c) 2019 - present Florent BOURASSÉ
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.