Skip to content

Commit 19529f3

Browse files
Pigbibicodex
andcommitted
fix: lower default gateway heap for e2-micro
Co-Authored-By: Codex <noreply@openai.com>
1 parent 2a8c0fd commit 19529f3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

docker-compose.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ services:
2727
# e2-micro has less than 1 GiB RAM. The upstream image defaults to
2828
# -Xmx768m, which can starve sshd/Docker/guest-agent. Keep this
2929
# configurable, but use a safer default for the current VM.
30-
- JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-512}
30+
# 384 MiB was stable in the recovery smoke check: it leaves
31+
# room for the guest OS and prevents the Gateway UI from being killed
32+
# before the login dialog can report a broker-side failure. Operators can
33+
# still set JAVA_HEAP_SIZE explicitly for a larger VM.
34+
- JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-384}
3135
# The upstream vmoptions use 20 parallel GC threads, which is too
3236
# aggressive for the current 2 vCPU VM and can slow Gateway startup.
3337
- IB_GATEWAY_PARALLEL_GC_THREADS=${IB_GATEWAY_PARALLEL_GC_THREADS:-2}

tests/test_docker_compose_ports.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ grep -Fq ' - IBC_SECOND_FACTOR_AUTHENTICATION_EXIT_INTERVAL=${IBC_SECOND_FA
5353
grep -Fq ' - EXISTING_SESSION_DETECTED_ACTION=${EXISTING_SESSION_DETECTED_ACTION:-primary}' "$compose_file"
5454
grep -Fq ' - IBKR_2FA_AUTOFILL=${IBKR_2FA_AUTOFILL:-yes}' "$compose_file"
5555
grep -Fq ' - IBKR_2FA_MAX_SUBMISSIONS=${IBKR_2FA_MAX_SUBMISSIONS:-1}' "$compose_file"
56-
grep -Fq ' - JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-512}' "$compose_file"
56+
grep -Fq ' - JAVA_HEAP_SIZE=${JAVA_HEAP_SIZE:-384}' "$compose_file"
5757
grep -Fq ' - IB_GATEWAY_PARALLEL_GC_THREADS=${IB_GATEWAY_PARALLEL_GC_THREADS:-2}' "$compose_file"
5858
grep -Fq ' - IB_GATEWAY_CONC_GC_THREADS=${IB_GATEWAY_CONC_GC_THREADS:-1}' "$compose_file"
5959
grep -Fq ' - ACCEPT_API_FROM_IP=${ACCEPT_API_FROM_IP:?Set ACCEPT_API_FROM_IP to your Cloud Run egress subnet or connector CIDR}' "$compose_file"

0 commit comments

Comments
 (0)