From 6c35f58793b2e11b0802f14458a74fd8d59f188a Mon Sep 17 00:00:00 2001 From: "Begerad, Stefan" Date: Tue, 31 Aug 2021 08:25:28 -0400 Subject: [PATCH] feat(vbn): added Lessons Learned section --- vbn/vbn.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/vbn/vbn.md b/vbn/vbn.md index 82372a8..e9cf128 100644 --- a/vbn/vbn.md +++ b/vbn/vbn.md @@ -1,6 +1,6 @@ # OTP setup for VBN There is not just one way to do it. -That is why you find the following selection. +That is why you have following selection. ## Setup according to [basic tutorial](http://docs.opentripplanner.org/en/latest/Basic-Tutorial/) * Download GTFS [data](vbn.gtfs.zip) from Connect-Fahrplanauskunft GmbH @@ -27,4 +27,26 @@ to be continued ## Setup accoding to [Stadtnavi tutorial](https://github.com/stadtnavi/stadtnavi-tutorial) +### Lessons Learned +Setting both `MEMORY` and `GRAPH_BUILD_MEMORY` to 4 GB and running the instruction ```docker-compose --env-file=.env.vbn up --build -d``` on a computer with 8 GB total and 4 GB memory available results in the following error. + +``` +Exception in thread "main" java.lang.OutOfMemoryError: Java heap space + at org.opentripplanner.common.geometry.PackedCoordinateSequence$Double.(PackedCoordinateSequence.java:246) + at org.opentripplanner.common.geometry.Serializable2DPackedCoordinateSequenceFactory.create(Serializable2DPackedCoordinateSequenceFactory.java:15) + at org.locationtech.jts.geom.GeometryFactory.createLineString(GeometryFactory.java:573) + at org.opentripplanner.common.geometry.GeometryUtils.makeLineString(GeometryUtils.java:53) + at org.opentripplanner.common.geometry.GeometryUtils.addStartEndCoordinatesToLineString(GeometryUtils.java:71) + at org.opentripplanner.common.geometry.CompactLineString.compactLineString(CompactLineString.java:110) + at org.opentripplanner.model.TripPattern.setHopGeometry(TripPattern.java:163) + at org.opentripplanner.model.TripPattern.setHopGeometries(TripPattern.java:158) + at org.opentripplanner.graph_builder.module.geometry.GeometryAndBlockProcessor.run(GeometryAndBlockProcessor.java:161) + at org.opentripplanner.graph_builder.module.GtfsModule.buildGraph(GtfsModule.java:153) + at org.opentripplanner.graph_builder.GraphBuilder.run(GraphBuilder.java:81) + at org.opentripplanner.standalone.OTPMain.startOTPServer(OTPMain.java:136) + at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:52) +12:11:10.329 INFO (OtpStartupInfo.java:47) OTP SHUTTING DOWN (version: 2.1.0-SNAPSHOT, ser.ver.id: 8, commit: f4d04d59568708cf9778b48f8cb8bbcb9d16b269, branch: dev-2.x) +The command '/bin/sh -c java -Xmx$MEMORY -jar otp-shaded.jar --build --save /opt/opentripplanner/build/' returned a non-zero code: 1 +``` + to be continued \ No newline at end of file