fix: lower memory usage when rendering from large amounts of tiffs BM-1535#3605
Merged
fix: lower memory usage when rendering from large amounts of tiffs BM-1535#3605
Conversation
Wentao-Kuang
approved these changes
Feb 23, 2026
Merged
github-merge-queue bot
pushed a commit
that referenced
this pull request
Mar 2, 2026
🤖 I have created a release *beep* *boop* --- <details><summary>bathymetry: 8.9.8</summary> ## [8.9.8](bathymetry-v8.9.7...bathymetry-v8.9.8) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>cli: 8.10.11</summary> ## [8.10.11](cli-v8.10.10...cli-v8.10.11) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/cli-config bumped from ^8.11.5 to ^8.11.6 * @basemaps/cli-raster bumped from ^8.11.6 to ^8.11.7 * @basemaps/cli-vector bumped from ^8.10.7 to ^8.10.8 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>cli-config: 8.11.6</summary> ## [8.11.6](cli-config-v8.11.5...cli-config-v8.11.6) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/config-loader bumped from ^8.12.3 to ^8.12.4 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>cli-raster: 8.11.7</summary> ## [8.11.7](cli-raster-v8.11.6...cli-raster-v8.11.7) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * devDependencies * @basemaps/config-loader bumped from ^8.12.3 to ^8.12.4 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>cli-vector: 8.10.8</summary> ## [8.10.8](cli-vector-v8.10.7...cli-vector-v8.10.8) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>config-loader: 8.12.4</summary> ## [8.12.4](config-loader-v8.12.3...config-loader-v8.12.4) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>8.19.1</summary> ## [8.19.1](v8.19.0...v8.19.1) (2026-02-26) ### Bug Fixes * lower memory usage when rendering from large amounts of tiffs BM-1535 ([#3605](#3605)) ([9dc711d](9dc711d)) </details> <details><summary>infra: 8.12.4</summary> ## [8.12.4](infra-v8.12.3...infra-v8.12.4) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * devDependencies * @basemaps/lambda-tiler bumped from ^8.13.0 to ^8.13.1 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>lambda-analytic-cloudfront: 8.9.9</summary> ## [8.9.9](lambda-analytic-cloudfront-v8.9.8...lambda-analytic-cloudfront-v8.9.9) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>lambda-tiler: 8.13.1</summary> ## [8.13.1](lambda-tiler-v8.13.0...lambda-tiler-v8.13.1) (2026-02-26) ### Bug Fixes * lower memory usage when rendering from large amounts of tiffs BM-1535 ([#3605](#3605)) ([9dc711d](9dc711d)) ### Dependencies * The following workspace dependencies were updated * dependencies * @basemaps/config-loader bumped from ^8.12.3 to ^8.12.4 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 * @basemaps/tiler-sharp bumped from ^8.11.4 to ^8.11.5 </details> <details><summary>landing: 8.13.1</summary> ## [8.13.1](landing-v8.13.0...landing-v8.13.1) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * devDependencies * @basemaps/cli-config bumped from ^8.11.5 to ^8.11.6 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 </details> <details><summary>server: 8.10.13</summary> ## [8.10.13](server-v8.10.12...server-v8.10.13) (2026-02-26) ### Dependencies * The following workspace dependencies were updated * devDependencies * @basemaps/config-loader bumped from ^8.12.3 to ^8.12.4 * @basemaps/lambda-tiler bumped from ^8.13.0 to ^8.13.1 * @basemaps/landing bumped from ^8.13.0 to ^8.13.1 * @basemaps/shared bumped from ^8.9.7 to ^8.9.8 * optionalDependencies * @basemaps/landing bumped from ^8.13.0 to ^8.13.1 </details> <details><summary>shared: 8.9.8</summary> ## [8.9.8](shared-v8.9.7...shared-v8.9.8) (2026-02-26) ### Bug Fixes * lower memory usage when rendering from large amounts of tiffs BM-1535 ([#3605](#3605)) ([9dc711d](9dc711d)) </details> <details><summary>tiler-sharp: 8.11.5</summary> ## [8.11.5](tiler-sharp-v8.11.4...tiler-sharp-v8.11.5) (2026-02-26) ### Bug Fixes * lower memory usage when rendering from large amounts of tiffs BM-1535 ([#3605](#3605)) ([9dc711d](9dc711d)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
When rendering low (z0-10) zoom scales from high resolution imagery, we sometimes request too many tiles at once, which can lead to all the memory of the server being eaten by the source data while they wait to be processed into output tiles
Modifications
Added some testing tools to help debug issues by loading configs directly from s3 and caching the data locally.
Limit the concurrent outstanding requests to 16 by default
Verification
Running locally, before the change on a 700 source tiff tile approx 3GB of memory was used, after the change 300MB is used