[gdal-dev] About VRT file size

Even Rouault even.rouault at spatialys.com
Wed Oct 22 17:02:20 PDT 2025


Le 23/10/2025 à 01:37, zrh via gdal-dev a écrit :
> Hi, everyone,
>
> I want to know the max size of a VRT file.
No fixed limit, but how much usable RAM your process has access to. My 
guess-timate would be that you need about between 2 and 10 times the VRT 
file size.
>
> When I use gdal_translate to convert a vrt to tiff, I got error:
>
> CPLMutexHolder: Failed to acquire mutex!
> ERROR 2: Cannot allocate CPLXMLNode
>
> It seems that memory allocation issue.
>
> I use gdal_translate.exe with x86 version, not x64.

You pretty much diagnosed the cause of the issue...

If you use VRT in a mosaicing context, you'd rather want to use 
https://gdal.org/en/stable/drivers/raster/gti.html instead of VRT with a 
very large number of sources. The RAM requirements of GTI are very small 
compared to VRT.

Even

-- 
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251023/49c9c35c/attachment.htm>


More information about the gdal-dev mailing list