Tuning Artifactory for Xray

XRAY: How to tune Xray for heavy loads?

AuthorFullName__c
Ariel Kabov
articleNumber
000004533
ft:sourceType
Salesforce
FirstPublishedDate
2019-08-25T06:48:45Z
lastModifiedDate
2022-11-12
VersionNumber
8
In Artifactory, there are several properties that can be configured to tune the Artifactory <> Xray interactions.
By default, Artifactory is set to check every 60 seconds if it has new events it should send to Xray. This can be altered, in addition to some other parameters.

This will be set in
$ARTIFACTORY_HOME/etc/artifactory.system.properties.

Tuning example:
artifactory.xray.indexer.intervalSecs = 30

Changing any of the other parameters documented below is not expected to tune Xray better for heavy loads, they're documented here so you can review them for specific use cases.

Property name

Usage

Default

artifactory.xray.indexer.intervalSecs

Interval between events submission

60

artifactory.xray.client.block.cache.expiration.intervalSecs

Cache of artifacts that got a scanning status

300

artifactory.xray.client.block.unscanned.cache.expiration.intervalSecs

Cache of artifact that don’t have scanning status

120

artifactory.xray.client.block.cache.size

 

10000

artifactory.xray.client.heartbeat.intervalSecs

Interval between each Xray server status checkup

5

artifactory.xray.client.max.connections

 

50

artifactory.xray.client.builds.socket.timeout.millis

Build client - anything related to scan build operations

600000

artifactory.xray.client.normal.socket.timeout.millis

Normal client - everything else

5000