Introduction
If you encounter messages indicating that metadata tasks for your Debian virtual repositories in Artifactory are stuck, it may require you to optimize the application's configuration.
Resolution
Key Logs to Monitor
You might see log entries similar to the following:
2025-02-25T21:13:30.866Z [jfrt ] [INFO ] [c5dd5ec40ded98fe] [.AsyncWorkQueueServiceImpl:283] [ded98fe|WorkQueueJob] - Executing Debian Virtual Metadata stuck tasks: 1413
2025-02-25T21:14:43.053Z [jfrt ] [INFO ] [714daa2ba0a811eb] [.AsyncWorkQueueServiceImpl:283] [0a811eb|WorkQueueJob] - Executing Debian Virtual Metadata stuck tasks: 2484
2025-02-25T21:14:48.057Z [jfrt ] [INFO ] [73889d94c8d1e794] [.AsyncWorkQueueServiceImpl:283] [8d1e794|WorkQueueJob] - Executing Debian Virtual Metadata stuck tasks: 2626
Virtual Debian Worker Size Considerations
When diagnosing slow task execution, consider the worker size for your Debian virtual repositories.
Keep in mind that the virtual Debian worker locks paths formatted as virtual_repo_name+dist_name.
To optimize the performance of your Debian virtual metadata calculation workers, adjust the number of workers based on the following formula:
Formula:
artifactory.debian.virtual.metadata.calculation.workers = Number_of_debian_virtual_repos * distribution_type_count
Important Note:
The default number of workers is set to 5.
Example Calculation:
For instance, if you have 5 virtual Debian repositories, each associated with 8 distribution names (such as bullseye, debian-11, bionic, jammy, stable, focal, xenial, and unstable), the calculation for the workers would be as follows:
artifactory.debian.virtual.metadata.calculation.workers=40 ## 5 Debian virtual repositories × 8 distributions = 40 workers in artifactory.system.properties file
By adjusting your configuration accordingly, you can effectively resolve issues with stuck tasks and enhance the performance of your Debian virtual repositories within Artifactory.