My problem is both of these eating a good amount of ram. In my case now around 3-4GB but if want to add more country then the ram usage will increase very fast because of the two service needs lot of ram separatly. Is there any best practice for how to save ram when using ors with geocoding or the current best solution is use these two service(maybe pelias instead of nominatim) and pay the bill?
if you are using the latest openrouteservice, you can set ors.engine.graphs_data_access=MMAP to map the graph data to disk instead of hold everything in RAM, which should reduce the memory requirements for ors a bit.
Of course this comes with reduced performance.
Hi, I would very much like to use this, but into what file do I have to insert the line “ors.engine.graphs_data_access=MMAP”? Do I have to rebuild then?
I considered that, but my ors-config.yml has a recursive structure with { brackets and everything. Do I need to break the line up recursively or can I just paste it at the end of the file?
no, it would be in the ors-config.yml that is in your ./conf folder.
But you are still using 7.1.1 which doesn’t support that yet.
Best use the docker-compose.yml from the 8.0.0 release:
then you could also set it within the environment block with: