New We are sorting MAX channels into categories and territories. Read the news

300 тысяч job в час: как неправильный порядок Dispose в Serilog устроил утечку памяти



Фоновые задачи Hangfire ждали в очереди до 1,5 часа, а память сервиса росла без остановки. Причин нашлось две: аналитические job конкурировали с обычными за одну очередь, а из-за неправильного порядка Dispose у LogContext.PushProperty в Serilog накопилось около 229 тыс. объектов PropertyEnricher. После разделения очередей ожидание сократилось до 5 минут, а исправление Dispose остановило утечку.

https://habr.com/ru/articles/1095836/
Views: 52
Open in MAX Report an inaccuracy

Report an inaccuracy

Describe what needs fixing. If you have a source, add a link.

You are leaving datool.ru

The link leads to an external website. datool.ru is not responsible for its content — check the address before entering passwords or payment details.

Redirecting in 10 s

Go