I’m trying to load the whole planet in for car routing. I read in the docs (https://github.com/graphhopper/graphhopper/blob/master/docs/core/deploy.md) that loading the global route network would take around 22GB. I’m running on a machine with 120GB, and I run out of memory after around 3 hours of processing. I do the following:
GraphHopperOSM hopper = new GraphHopperOSM(); hopper.forServer(); hopper.setOSMFile("/data/planet/planet-latest.osm.pbf"); hopper.setGraphHopperLocation("/data/planet/processed"); hopper.setEncodingManager(new EncodingManager("car")); hopper.setEnableInstructions(false); hopper.setEnableCalcPoints(false); hopper.setCHEnabled(true); hopper.setPreciseIndexResolution(50); hopper.importOrLoad(); return hopper;
Is there something special I need to do to get it to load in a reasonable amount of ram. Or, in my case, load at all. Is there some flag or setting I’m missing? Should I load the data in a different format? How would you normally load the whole planet file for car queries?