Hello, i am trying to run a private Docker instance of the openrouteservice.
I can run a federal state like North-Rhein Westfalia with no problem using -Xms4g -Xmx4g.
Trying to use the Germany extract from Geofabrik crashes after about 2 hours of processing with -Xms8g -Xmx8g. Docker stats shows that the container never uses more than about 4.2 gb of ram before crashing.
I am using a fresh 16 gb ram digital ocean droplet with nothing but docker installed.
at java.lang.Thread.run(Thread.java:748)
ors-app | Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
ors-app | 13 Nov 19:06:33 ERROR [routing.RoutingProfileManager] - java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space - problem when allocating new memory. Old capacity: 1048576, new bytes:1453111424, segmentSizeIntsPower:20, new segments:1386, existing:1
ors-app | java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space - problem when allocating new memory. Old capacity: 1048576, new bytes:1453111424, segmentSizeIntsPower:20, new segments:1386, existing:1
ors-app | at java.util.concurrent.FutureTask.report(FutureTask.java:122)
ors-app | at java.util.concurrent.FutureTask.get(FutureTask.java:192)
ors-app | at heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:218)
ors-app | at heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:66)
ors-app | at heigit.ors.servlet.listeners.ORSInitContextListener.lambda$contextInitialized$0(ORSInitContextListener.java:43)
ors-app | at java.lang.Thread.run(Thread.java:748)
ors-app | Caused by: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space - problem when allocating new memory. Old capacity: 1048576, new bytes:1453111424, segmentSizeIntsPower:20, new segments:1386, existing:1
ors-app | at com.graphhopper.routing.lm.LMAlgoFactoryDecorator.loadOrDoWork(LMAlgoFactoryDecorator.java:304)
ors-app | at com.graphhopper.GraphHopper.loadOrPrepareLM(GraphHopper.java:1329)
ors-app | at com.graphhopper.GraphHopper.postProcessing(GraphHopper.java:942)
ors-app | at heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.postProcessing(ORSGraphHopper.java:497)
ors-app | at com.graphhopper.GraphHopper.process(GraphHopper.java:719)
ors-app | at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:688)
ors-app | at heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:158)
ors-app | at heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:185)
ors-app | at heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:130)
ors-app | at heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:37)
ors-app | at heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:21)
ors-app | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
ors-app | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
ors-app | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
ors-app | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
ors-app | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
ors-app | ... 1 more
ors-app | Caused by: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space - problem when allocating new memory. Old capacity: 1048576, new bytes:1453111424, segmentSizeIntsPower:20, new segments:1386, existing:1
ors-app | at java.util.concurrent.FutureTask.report(FutureTask.java:122)
ors-app | at java.util.concurrent.FutureTask.get(FutureTask.java:192)
ors-app | at com.graphhopper.routing.lm.LMAlgoFactoryDecorator.loadOrDoWork(LMAlgoFactoryDecorator.java:300)
ors-app | ... 16 more
ors-app | Caused by: java.lang.OutOfMemoryError: Java heap space - problem when allocating new memory. Old capacity: 1048576, new bytes:1453111424, segmentSizeIntsPower:20, new segments:1386, existing:1
ors-app | at com.graphhopper.storage.RAMDataAccess.ensureCapacity(RAMDataAccess.java:108)
ors-app | at com.graphhopper.routing.lm.LandmarkStorage.createLandmarks(LandmarkStorage.java:215)
ors-app | at com.graphhopper.routing.lm.PrepareLandmarks.doWork(PrepareLandmarks.java:135)
ors-app | at com.graphhopper.routing.lm.LMAlgoFactoryDecorator$1.run(LMAlgoFactoryDecorator.java:290)
ors-app | at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
ors-app | ... 6 more