With turn costs something requires a lot more memory on import
See original GitHub issueIf I just want to import a city (~50MB source map) and import this with car, without turn costs and 1g RAM, then all is fine. But with turn_costs=true the import fails with:
2016-12-21 10:48:31,271 [main] INFO com.graphhopper.reader.osm.GraphHopperOSM - using car|RAM_STORE|2D|turn_cost|,,,,, memory:totalMB:981, usedMB:46
Exception in thread "pool-3-thread-2" java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.graphhopper.reader.ReaderElement.<init>(ReaderElement.java:40)
at com.graphhopper.reader.ReaderNode.<init>(ReaderNode.java:42)
at com.graphhopper.reader.osm.pbf.PbfBlobDecoder.processNodes(PbfBlobDecoder.java:238)
As the overhead of turn costs should be neglectable and the import itself should work with <500MB this seems to be a bug.
See also “Why do we have static edge and node IDs” #556
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Unnecessary Imports: Be careful what you import - Pluralsight
This could be costly depending on how much memory your application was already using and how much your system has available.
Read more >Understand How Much Memory Your Python Objects Use
It turns out that it is not difficult to figure out how much memory is actually consumed. In this article, I'll walk you...
Read more >How do I profile memory usage in Python? - Stack Overflow
Python 3.4 includes a new module: tracemalloc . It provides detailed statistics about which code is allocating the most memory.
Read more >WSL 2 consumes massive amounts of RAM and doesn't return it
Lots of memory consumption with WSL2, nodejs app and VS Code with Remote - WSL while very low consumption in WSL1 with the...
Read more >Massive amount of memory (RAM) required for solve
The 40 GB is correct and required for this model to solve using a lot of disk access (out-of-core), which could be slow....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We have to remove this warning, as large PBFs seem to have large blobs …
The workaround was regarding the higher memory consumption. The underlying issue is that your pbf (as well as my example) seem to have several times bigger blobs than usual which causes a very high memory requirement, but this is only strange for small areas. So it might be good to avoid this warning completely.