From 0378ffc05e8bccb10927a7ffcca3cd97094a0ab7 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Wed, 29 Apr 2026 05:28:59 +0800 Subject: [PATCH] Find IB Gateway vmoptions for Java tuning --- container_overrides/run.sh | 2 +- tests/test_docker_compose_ports.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/container_overrides/run.sh b/container_overrides/run.sh index ee8fdd9..02c18fe 100644 --- a/container_overrides/run.sh +++ b/container_overrides/run.sh @@ -109,7 +109,7 @@ configure_ib_gateway_vmoptions() { local conc_threads="${IB_GATEWAY_CONC_GC_THREADS:-1}" local vmoptions - vmoptions="$(find "${TWS_PATH}" -maxdepth 2 -name ibgateway.vmoptions -type f 2>/dev/null | head -n 1 || true)" + vmoptions="$(find "${TWS_PATH}" -maxdepth 3 -name ibgateway.vmoptions -type f 2>/dev/null | head -n 1 || true)" if [ -z "$vmoptions" ]; then echo ".> IB Gateway vmoptions file not found; skipping Java GC thread tuning" return diff --git a/tests/test_docker_compose_ports.sh b/tests/test_docker_compose_ports.sh index 57dca2a..1c2745f 100644 --- a/tests/test_docker_compose_ports.sh +++ b/tests/test_docker_compose_ports.sh @@ -22,6 +22,7 @@ grep -Fq 'configure_ibc_login_dialog_timeout' "$run_override" grep -Fq 'IBC_LOGIN_DIALOG_DISPLAY_TIMEOUT:-180' "$run_override" grep -Fq 'LoginDialogDisplayTimeout=${timeout}' "$run_override" grep -Fq 'configure_ib_gateway_vmoptions' "$run_override" +grep -Fq 'find "${TWS_PATH}" -maxdepth 3 -name ibgateway.vmoptions' "$run_override" grep -Fq 'IB_GATEWAY_PARALLEL_GC_THREADS:-2' "$run_override" grep -Fq 'IB_GATEWAY_CONC_GC_THREADS:-1' "$run_override" grep -Fq 'Java GC threads set to ParallelGCThreads=${parallel_threads}, ConcGCThreads=${conc_threads}' "$run_override"