DevOps
System Administrator
Jahia 8.2
How to compute the size of a site?
Question
How to compute the size of a site? Do you have a Groovy script that can calculate the weight of a Jahia site?
Answer
A community module, JCR Statistics, will allow you to obtain a flamegraph displaying the size in bytes of the binaries.
In case you need to obtain also the number of nodes of a site, you can also execute a request like this one in the JCR Query Tool (JAHIA_URL/modules/tools/jcrQuery.jsp):
select count as [rep:count()] from [nt:base] as n WHERE ISDESCENDANTNODE(n, '/sites/digitall')