ARTIFACTORY: What is a full Garbage Collection run and how to perform it

DaYoun Kang
2022-11-20 09:32

Let’s say a file is under the trash can and its retention period is over. Then Artifactory un-deploys (removes the reference of) the file. And it checks if there are any other referenced binaries for the same checksum. If there are no other referenced binaries, Artifactory will remove the file from the filestore when the garbage collection is run.

Or if a file is manually removed from the trash can or if the retention period is over like in the above case, the 20th cycle of garbage collection will delete all other unreferenced binaries from the filestore, performing a “full run''.

You can change the number of cycles to execute the full run by modifying the $JFROG_HOME/artifactory/var/etc/artifactory/artifactory.system.properties
file (default value is 20 cycles):
 artifactory.gc.skipFullGcBetweenMinorIterations=20
Artifactory restart is required to apply the above change.