我正在分析nexus3实例的磁盘使用情况。我使用this question and answers获取所有存储库使用的磁盘空间:
cd /opt/nexus
java -jar ./lib/support/nexus-orient-console.jar
> CONNECT PLOCAL:/opt/sonatype-work/nexus3/db/component admin admin
> select bucket.repository_name as repository,sum(size) as bytes from asset group by bucket.repository_name order by bytes desc;然后,通过对所有结果的求和,我得到了大约200 get 。然而,当我在磁盘上移动时,我得到了378 get 的磁盘使用率
> du -sh /opt/sonatype-work/nexus3/blobs
378G blobs/这种差异是从何而来的?这是正常的,还是有一些操作,我可以或应该做,以清理这一点?
发布于 2019-10-16 11:43:45
显然,当在接口中删除时,工件不会从磁盘中移除。为此,需要运行Compact 任务。运行此任务后,我的磁盘使用率为180克。
https://stackoverflow.com/questions/58395769
复制相似问题