Affects Version/s: 6.6.5
Fix Version/s: None
(Java) Profiling Artifactory shows that a large portion of the CPU time spent on creating bz2 compressed Debian metadata files.
This causes delays in serving metadata bound for requesting clients.
Especially evident for Debian Virtual repositories metadata calculation, as it can potentially (and even most likely) will aggregate at least several Debian repos.
Disable bz2 compression - some clients, e.g. Trusty's (Ubuntu 14.04) doesn't use the bz2 produced Packages.gz file - it'll be much faster. One report was that a calculation of thousands of packages in a virtual repo took 1 min instead of 15 mins.
Steps to reproduce:
1. Create a local and virtual Debian repos - by default the bz2 format will be enabled for them
2. Deploy many (~10000) Debian packages to a local repo (aggregated in a virtual repository) - it is possible to use the script below to deploy a single package to multiple paths and coordinates
3. Try to issue a Debian Virtual repository recalculation - depending on the size of the repo, it can take anything between 15 - 60 minutes. Meanwhile do an $ apt get update directed to this virtual repo.
4. The effect on the APT client is that it would wait (or until a timeout) for Artifactory to finish calculation