According to my disk usage report, my JCR repository is 1.97 GB:
But when I look at the actual disk space taken up it's 15 GB:
$ sudo du -sh repository/
I understand that there is some overhead but 10 x seems absurd.
I've run the data store garbage collection and the revision garbage collection (http://localhost:4502/system/console/jmx/org.apache.jackrabbit.oak%3Aname%3Drepository+manager%2Ctyp...)
but it doesn't seem to free up more space. I'm running on a VM that is a pain to resize and I need to free up space.
Any help is appreciated!
I believe disk cleanup is only checking "repository/segmentstore" folder. There are other folders under repository as well.
Can you check the size of "datastore", "blobid" and "index" directories?
Looks like the biggest cuprit is repository/datastore.
crx-quickstart]$ sudo du --max-depth=2 -h .
I thought that's what the datastore garbage collection cleaned up...
By default, everything above 4KB will go to datastore. So, it mostly assets, packages, other files, etc.
That said, DSGC will only clear up storage in datastore for the nodes that are not referenced in the segmentstore. So, you need to actually delete assets, packages and other files -> Run Revision cleanup -> Run DSGC to free up the disk space.