From baf782395d2aee2f4c3dd9e295f5eb5e64063c65 Mon Sep 17 00:00:00 2001 From: Petr McAllister Date: Mon, 12 Jan 2026 12:50:50 -0800 Subject: [PATCH] Override JVM heap to 4GB in .bazelrc for ARM64 builds Automation reverts envoy.bazelrc back to 3GB when syncing from upstream. Add override in .bazelrc (which imports after envoy.bazelrc) to permanently set heap to 4GB for ARM64 builds. The 3GB limit causes memory pressure during large downloads which breaks gRPC remote cache connections. --- .bazelrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bazelrc b/.bazelrc index f77abf6d4ea..9d6c95f88ad 100644 --- a/.bazelrc +++ b/.bazelrc @@ -6,6 +6,11 @@ # curl -sSL https://raw.githubusercontent.com/envoyproxy/envoy/master/.bazelrc > envoy.bazelrc import %workspace%/envoy.bazelrc +# Istio override: increase JVM heap to 4GB for ARM64 builds (envoy.bazelrc sets 3GB) +# The 3GB limit causes memory pressure during large downloads which breaks gRPC remote cache connections +# See: https://github.com/istio/proxy/pull/6726 +startup --host_jvm_args=-Xmx4g + # Overrides workspace_status_command build --workspace_status_command=bazel/bazel_get_workspace_status build:remote --remote_timeout=7200