简体   繁体   中英

Binaries size showing high in jfrog

在此处输入图像描述

I have deleted all the artifacts from jfrog cloud and I have deleted all the repositories. Stil the Binaries size showing as 1.5GB. How to resolve this issue. I am not seeing maintenance option in jfrog. I am a individual user and i am the admin for this account.

Artifacts in Artifactory are not removed immediately. There is a default trash can that stores your artifacts for 2 weeks by default, before deleting them forever.

The trash can settings can be accessed only by admin, therefore as a non-admin user, you can wait ~2 weeks or ask your Artifactory admin to empty the trash can.

To empty the trash can as admin, go to Administration | Artifactory | General | Settings Administration | Artifactory | General | Settings Administration | Artifactory | General | Settings and then click on the "Empty Trash Can"

For more information see:

I know it is late, but let me share this info so it may be helpful to others.

There are two scenarios

  1. You can check whether the Trash is cleaned up or not, if not the usual retention period is 14 days, meaning once you delete any artifact it will come to Trash (if Trash facility is enabled). It will be in trash for 14 days after this period automatically Trash will be cleaned up.

  2. When we delete any artifact in UI or by using Jfrog API it will not delete the actual binary of that artifact, instead it will delete the checksum of that binary. In above case you can see in the screenshot Binary size is 1.53 GB and the artifact size is 8.06 MB which should not the case.

Artifact size will always be higher than Binary size.

But the reason for the above issue is - artifactoy will store binaries in checksum based storage.

So when we delete the artifact it will delete the checksum alone, not the actual binary.

Then this actual binaries will be deleted by GC run by artifactory for every 4 hours by default(this will be triggered by cront exp, we can run this manually by using API as well).

While running the GC jfrog will check is there any binaries without any checksum reference, then it will be deleted during GC run.

Please refer below links for detailed info.

https://jfrog.com/knowledge-base/why-does-removing-deleting-old-artifacts-is-not-affecting-the-artifactory-disk-space-usage/#:~:text=The%20above%20behavior,any%20other%20repository .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM