Skip to content

Can osmupdate cause an "out of memory" error? #983

Answered by msbarry
zstadler asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like osmconvert emits a PBF file with very few (10) large blocks whereas the original input file had many (1842) small blocks. Each block gets fully parsed/expanded to in-memory objects then processed by a worker thread so this basically ends up loading the entire thing in memory at once and -Xmx1g 1GB of ram is a pretty low limit for planetiler. You could either get it working by using -Xmx5g or limit to only having 1 thread expanding blocks at a time with --threads=1 then you could get away with -Xmx2g.

Alternatively there might be a config parameter to use to tell osmconvert to generate smaller blocks, but I'm not seeing anything obvious in the --help output.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@msbarry
Comment options

Answer selected by zstadler
@marqqs
Comment options

@msbarry
Comment options

@zstadler
Comment options

@marqqs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants