Problem of memory when setting up ORS by docker

Hi everyone,

I tried to set up ORS backend by docker with ors-config.json file, and I have the following error in Linux command interface when trying to set up big (maybe too big) OSM file, such as France in my case:

java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: Java heap space

It seems to be a problem of memory space, because when I tried with small OSM files to experiment (Paris, Delaware etc.) the backend is installed correctly and I can use the different APIs quietly.

How can I fix this problem?

Thank you very much!

Hey,

the openrouteservice uses quite a bit of RAM - roughly twice the size of the used pbf file per profile.

If you’re running into issues, you can either specify less profiles in your osm-config, provide more RAM to the process or use a smaller region.

Best regards