1

I have a normal program (written in c++) compiled with make that I'm running in docker with the --memory option.

According to docker stats the memory slowly goes up until it hits the limit I've chosen and then it just flats out. It doesn't get OOMKilled as I would have guessed.

Is there some version of malloc that notices that the cgroup is out of memory and starts using memory more efficiently (like defrag)?

Or is there any other kind of magic going on here?

The program is Apache Traffic Server and the version is 7.1.x (source)

Andreas Wederbrand
  • 38,065
  • 11
  • 68
  • 78
  • Perhaps it's Apache Traffic Server that "starts using memory more efficiently" when `new` `throws`/`return`s 0. – Paul Evans Jul 16 '19 at 20:39

0 Answers0