nilsnolde / docker-valhalla

This is our flexible Docker repository for the Valhalla routing engine
MIT License
257 stars 74 forks source link

Out Of Memory Error #165

Closed akki401 closed 2 months ago

akki401 commented 2 months ago

Hello Team, I hosted 3 different continent docker containers(Europe, Asia and North-America) in i4i.2xlarge which has 8 vCPU and 64GB memory . Out of those one docker container of Europe faced the OUT OF MEMORY Error and but docker still running but not stopped {"log":"FATAL ERROR: OUT OF MEMORY (src/yqueue.hpp:70)\r\n","stream":"stdout","time":"2024-09-29T11:22:39.968056306Z"}

I checked the RAM usage and found enough memory image

I am not sure why the container experienced the out of memory issue.

If the docker container face heavy traffic than usual at particular time may lead to this kind of issue?

chrstnbwnkl commented 2 months ago

"Enough memory" for what exactly? 62 gigs can easily be exhausted if you hit the service with, say, a large matrix request that is spread geographically, leading not only to a lot tiles being read into the tile cache, but also a big memory footprint due to a large expansion during path finding. So yes, if you don't protect your service against those kinds of requests, this can lead to it being OOM killed.

akki401 commented 2 months ago

Thankyou