<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">Le 23/10/2025 à 01:37, zrh via gdal-dev
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:202510230737359682493@aaaaasoft.com">
      <pre class="moz-quote-pre" wrap="">Hi, everyone,

I want to know the max size of a VRT file.</pre>
    </blockquote>
    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.<br>
    <blockquote type="cite"
      cite="mid:202510230737359682493@aaaaasoft.com">
      <pre class="moz-quote-pre" wrap="">

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.</pre>
    </blockquote>
    <p>You pretty much diagnosed the cause of the issue...</p>
    <p>If you use VRT in a mosaicing context, you'd rather want to use
      <a class="moz-txt-link-freetext" href="https://gdal.org/en/stable/drivers/raster/gti.html">https://gdal.org/en/stable/drivers/raster/gti.html</a> instead of VRT
      with a very large number of sources. The RAM requirements of GTI
      are very small compared to VRT.</p>
    Even<span style="white-space: pre-wrap">
</span>
    <pre class="moz-signature" cols="72">-- 
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
  </body>
</html>