Skip to content

Commit a52b9cb

Browse files
committed
fix: increase OTP memory limits and set Java heap for continent-scale builds
1 parent 88f827f commit a52b9cb

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

infra/docker/docker-compose.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,12 +237,14 @@ services:
237237
- ./services/otp/build-config.json:/var/opentripplanner/build-config.json:ro
238238
- ./services/otp/router-config.json:/var/opentripplanner/router-config.json:ro
239239
command: --load --serve
240+
environment:
241+
JAVA_TOOL_OPTIONS: "-Xmx12g"
240242
profiles: [transit]
241243
networks: [openmapx]
242244
deploy:
243245
resources:
244246
limits:
245-
memory: 8g
247+
memory: 16g
246248
restart: unless-stopped
247249

248250
# ── Geocoding (Pelias) ─────────────────────────────────────────────────
@@ -494,13 +496,15 @@ services:
494496
volumes:
495497
- ./data/otp:/var/opentripplanner
496498
- ./services/otp/build-config.json:/var/opentripplanner/build-config.json:ro
499+
environment:
500+
JAVA_TOOL_OPTIONS: "-Xmx14g"
497501
profiles: [build]
498502
networks: [openmapx]
499503
command: --build --save
500504
deploy:
501505
resources:
502506
limits:
503-
memory: 8g
507+
memory: 16g
504508

505509
pelias-schema:
506510
image: pelias/schema:latest

0 commit comments

Comments
 (0)