XRAY: Enable scanning of large metadata files by increasing the indexer limit

XRAY: Enable scanning of large metadata files by increasing the indexer limit

AuthorFullName__c
Sushmita S Shetty
articleNumber
000006244
FirstPublishedDate
2024-11-25T11:13:51Z
lastModifiedDate
2025-07-22
VersionNumber
1
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.