England build on premisse server. Work around for heap size?

Hi,

It has been quite challenging to put the on premisse server to run. I’m experiencing difficulties generating the graphs/car data for England. Due to limited experience with Docker, I guess is because the build is running out of Heap Space

Currently, we have a laptop with a nominal 12 GB RAM, but in reality only has around 9 GB.

Is there any workaround for this situation?

Already attempted the suggestions mentioned here

I would like your opinion if there is something I can make to build the server.

This are the errors docker gave me

2023-07-19 01:33:52 19 Jul 00:33:52 INFO [extensions.ORSGraphHopper] - will create PrepareRoutingSubnetworks with:
2023-07-19 01:33:52     NodeCountBefore: '5530634'
2023-07-19 01:33:52     getAllEdges().getMaxId(): '6186222'
2023-07-19 01:33:52     List<FlagEncoder>: '[car_ors]'
2023-07-19 01:33:52     minNetworkSize: '200'
2023-07-19 01:33:52     minOneWayNetworkSize: '200'
2023-07-19 01:33:58 19 Jul 00:33:58 ERROR [routing.RoutingProfileManager] - java.util.concurrent.ExecutionException: com.carrotsearch.hppc.BufferAllocationException: Not enough memory to allocate new buffers: 8,486,452 -> 12,729,678
2023-07-19 01:33:58 19 Jul 00:33:58 ERROR [routing.RoutingProfileManager] - Failed to initialize RoutingProfileManager instance.
2023-07-19 01:33:58 java.util.concurrent.ExecutionException: com.carrotsearch.hppc.BufferAllocationException: Not enough memory to allocate new buffers: 8,486,452 -> 12,729,678
2023-07-19 01:33:58     at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
2023-07-19 01:33:58     at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
2023-07-19 01:33:58     at org.heigit.ors.routing.RoutingProfileManager.initialize(RoutingProfileManager.java:181)
2023-07-19 01:33:58     at org.heigit.ors.routing.RoutingProfileManager.getInstance(RoutingProfileManager.java:72)
2023-07-19 01:33:58     at org.heigit.ors.servlet.listeners.ORSInitContextListener.lambda$contextInitialized$0(ORSInitContextListener.java:40)
2023-07-19 01:33:58     at java.base/java.lang.Thread.run(Thread.java:833)
2023-07-19 01:33:58 Caused by: com.carrotsearch.hppc.BufferAllocationException: Not enough memory to allocate new buffers: 8,486,452 -> 12,729,678
2023-07-19 01:33:58     at com.carrotsearch.hppc.IntArrayDeque.ensureBufferSpace(IntArrayDeque.java:496)
2023-07-19 01:33:58     at com.carrotsearch.hppc.IntArrayDeque.addLast(IntArrayDeque.java:163)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.EdgeBasedTarjanSCC.setupNextEdgeKey(EdgeBasedTarjanSCC.java:171)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.EdgeBasedTarjanSCC.startSearch(EdgeBasedTarjanSCC.java:266)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.EdgeBasedTarjanSCC.findComponentsForEdgeState(EdgeBasedTarjanSCC.java:237)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.EdgeBasedTarjanSCC.findComponents(EdgeBasedTarjanSCC.java:216)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.EdgeBasedTarjanSCC.findComponents(EdgeBasedTarjanSCC.java:79)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks.setSubnetworks(PrepareRoutingSubnetworks.java:102)
2023-07-19 01:33:58     at com.graphhopper.routing.subnetwork.PrepareRoutingSubnetworks.doWork(PrepareRoutingSubnetworks.java:94)
2023-07-19 01:33:58     at com.graphhopper.GraphHopper.cleanUp(GraphHopper.java:1220)
2023-07-19 01:33:58     at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.cleanUp(ORSGraphHopper.java:156)
2023-07-19 01:33:58     at com.graphhopper.GraphHopper.process(GraphHopper.java:705)
2023-07-19 01:33:58     at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:667)
2023-07-19 01:33:58     at org.heigit.ors.routing.graphhopper.extensions.ORSGraphHopper.importOrLoad(ORSGraphHopper.java:166)
2023-07-19 01:33:58     at org.heigit.ors.routing.RoutingProfile.initGraphHopper(RoutingProfile.java:193)
2023-07-19 01:33:58     at org.heigit.ors.routing.RoutingProfile.<init>(RoutingProfile.java:140)
2023-07-19 01:33:58     at org.heigit.ors.routing.RoutingProfileLoader.call(RoutingProfileLoader.java:39)
2023-07-19 01:35:02 19-Jul-2023 00:35:02.731 INFO [Thread-4] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-8080"]
2023-07-19 01:35:02 19-Jul-2023 00:35:02.933 WARNING [Thread-4] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ors] appears to have started a thread named [ORS-Kafka-Init] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
2023-07-19 01:35:02  java.base@17.0.7/java.lang.Thread.sleep(Native Method)
2023-07-19 01:35:02  org.heigit.ors.servlet.listeners.ORSKafkaConsumerInitContextListener.lambda$contextInitialized$0(ORSKafkaConsumerInitContextListener.java:47)
2023-07-19 01:35:02  org.heigit.ors.servlet.listeners.ORSKafkaConsumerInitContextListener$$Lambda$1363/0x000000080167a418.run(Unknown Source)
2023-07-19 01:35:02  java.base@17.0.7/java.lang.Thread.run(Thread.java:833)
2023-07-19 01:35:02 19-Jul-2023 00:35:02.966 WARNING [Thread-4] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ors] appears to have started a thread named [ORS-pl-car] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:

This is how my config file is atm

"profile-car": {
            "profiles": "driving-car",
            "parameters": {
              "encoder_flags_size": 8,
              "encoder_options": "turn_costs=true|block_fords=false|use_acceleration=true",
              "maximum_distance": 100000,
              "elevation": true,
              "maximum_snapping_radius": 350,
              "preparation": {
                "min_network_size": 200,
                "min_one_way_network_size": 200,
                "methods": {
                  "ch": {
                    "enabled": true,
                    "threads": 1,
                    "weightings": "fastest"
                  },
                  "lm": {
                    "enabled": false,
                    "threads": 1,
                    "weightings": "fastest",
                    "landmarks": 16

thanks in advance!