[ 
https://issues.apache.org/jira/browse/OAK-2504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14322887#comment-14322887
 ] 

Michael Dürig commented on OAK-2504:
------------------------------------

Added feature to count nodes, properties etc. Running 
{code}
java -Xmx2G -jar oak-run-1.1-SNAPSHOT.jar Debug /path/to/segmentstore
{code}

now results in output like
{noformat}
Total size:
10 GB in 102887 data segments
6 MB in     24 bulk segments
597 MB in maps (16891607 leaf and branch records)
158 MB in lists (2853509 list and bucket records)
8 GB in values (value and block records of 59376464 properties, 
23324/729221/0/1547475 small/medium/long/external blobs, 81283823/2558920/828 
small/medium/long strings)
37 MB in templates (2321005 template records)
742 MB in nodes (75347200 node records)

Available for garbage collection:
5 GB in  53947 data segments
3 MB in     12 bulk segments
{noformat}

Note that depending on the repository size the process might run for over an 
hour. Also it needs enough memory to run.

> oak-run debug should list a breakdown of space usage per record type
> --------------------------------------------------------------------
>
>                 Key: OAK-2504
>                 URL: https://issues.apache.org/jira/browse/OAK-2504
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: run
>            Reporter: Michael Dürig
>            Assignee: Michael Dürig
>             Fix For: 1.1.8
>
>
> The current output of oak-run in debug run mode only gives a disk space 
> breakdown for bulk and data segments. For OAK-2408 it would be good if we 
> could have a finer grained breakdown where we could see which record type 
> take up how much space. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to