diff options
| author | Philip Kuryloski <pkuryloski@pivotal.io> | 2020-03-13 20:59:17 +0100 |
|---|---|---|
| committer | Philip Kuryloski <pkuryloski@pivotal.io> | 2020-03-18 16:34:47 +0100 |
| commit | bfdb74cbd867d6e882c4e6fa434793b94c8d229f (patch) | |
| tree | f5e164ff0b58457fa5cc81779a1724abb83b20d3 /LICENSE-MPL-RabbitMQ | |
| parent | abc0b522de83e36650e873d2065646dc1f4ae1d4 (diff) | |
| download | rabbitmq-server-git-bfdb74cbd867d6e882c4e6fa434793b94c8d229f.tar.gz | |
Reduce memory usage during startup
In the case of large backlogs of persistent messages (10s of millions
of messages)
Previously we queued a job for every file with worker_pool:submit_async,
however if there are 50 million messages, this corresponds to ~79,000 files
and the same number of pending tasks in the worker pool. The mailbox for
worker_pool explodes under these circumstances, using massive amounts of
memory.
The following was helpful in zeroing in on the problem:
https://elixirforum.com/t/extremely-high-memory-usage-in-genservers/4035
Diffstat (limited to 'LICENSE-MPL-RabbitMQ')
0 files changed, 0 insertions, 0 deletions
