Issue
This article explains how to resolve the warning when indexing/scanning an artifact in Xray
"large metadata file, skip scanning, file: <artifact_name>, size:xxxx, limit: 5242880"
Cause
The cause of this error is the maxMetadataFileSizeBytes parameter configured in Xray, if the file size exceeds the default limit of 5242880. This warning will be printed in xray-indexer-service.log.
Resolution
In order to change this limit, the parameter indexer.maxMetadataFileSizeBytes in Xray's system.yaml file (located in $JFROG_HOME/xray/var/etc/) needs to be added/modified accordingly (Change <maxMetadataFileSizeBytes> to the desired value). In the below example, the limit is now 9 Million:
indexer:
maxMetadataFileSizeBytes: 9000000
And the above changes require restarting the Xray service.