Do you actually see the GC (Garbage Collection) summary in the
artifactory.log file that indicates that the GC actually finished? it
should look like that:
*2015-12-07 10:50:14,387 [art-exec-53] [INFO ]
(o.a.s.b.GarbageCollectorInfo:78) - Storage garbage collector report:*
*Number of binaries: 2,458*
*Total execution time: 1.25 minutes*
*Candidates for deletion: 2,294*
*Checksums deleted: 2,294*
*Binaries deleted: 2,294*
*Total size freed: 269.50 MB*
*Current total size: 384.20 MB*
If the GC indeed finished, then the binaries size will not be bigger than
the artifacts size.
In case you did not saw the summary yet, there could be two reasons for
that:
*First reason:* The GC still in progress. You can verify that by adding the
bellow trace logger into the $ARTIFACTORY_HOME/etc/logback.xml file.
*<logger name="org.artifactory.storage.db.binstore.service">*
* <level value="trace"/>*
*</logger>*
Applying the log *does not requires* restarting the Artifactory server.
Once applying the log, if the GC is in the middle of a run, you should see
similar log entries as below:
*2015-12-07 10:50:00,155 [art-exec-53] [TRACE]
(o.a.s.d.b.s.BinaryStoreImpl:437) - Candidate for deletion:
{0d691a0f03d29be835c900e903206c3881240dd8,1adaa5676a4f877cf3695089512c83d9,9669080}*
*2015-12-07 10:50:00,159 [art-exec-53] [TRACE]
(o.a.s.d.b.s.BinaryStoreImpl:684) - Deleted
0d691a0f03d29be835c900e903206c3881240dd8 record from binaries table*
...
*Second reason:* In case that you don't see the above log entries after
applying the trace loggers, it could be that for some reason, the GC does
not starting it's run.
You haven't mentioned the version of your Artifactory server, but you might
be interested to know that in the past, with older versions of Artifactory,
there were few reports on GC that wont start for a long period of time, see
here <https://www.jfrog.com/jira/browse/RTFACT-7290> for example (there
were a few other relevant Jira issues). If you are running into similar
behavior when the GC never runs and you are running an old version of
Artifactory, I will first recommend to upgrade to one of the most recent
versions. You might be interested to know that at these days, except
restarting the server (which helped to overcome this state that the GC
never runs), re-saving the config descriptor from the Web-UI also helped an
after saving it, users were able to trigger the GC to run again.
I hope that helps,
Shay
On Mon, Dec 7, 2015 at 10:34 AM, moberberger [via Artifactory] <
[email protected]> wrote:
> Hey,
>
> thanks for the answer. I tried it several times, but still the same issue.
> The "Binaries Size" is much bigger than the "Artifacts Size".
>
> I also tried "Cleanup Unused Cached Artifacts", "Cleanup Virtual
> Repositories" and "Prune Unreferenced Data", but unfortunately no success.
>
> Is there maybe anything else I can try? Or should I start from 0 with a
> new artifactory?
>
> --
> Best regards
> Max
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://forums.jfrog.org/Artifactory-4-1-0-artifacts-size-vs-binaries-size-tp7580636p7580643.html
> To start a new topic under Artifactory - Users, email
> [email protected]
> To unsubscribe from Artifactory, click here
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
> .
> NAML
> <http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://forums.jfrog.org/Artifactory-4-1-0-artifacts-size-vs-binaries-size-tp7580636p7580644.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users