Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3624 Lượt xem

Hi everyone, I'm performing some tests related to workers and memory limits.


I found the doc which says the following:

limit_memory_soft - It is the maximum permitted virtual memory per worker, when it is reached the worker is to be reset after the current request.


But I would like to know what exactly means that the worker is reset/refreshed when reaching the limit. Because I'm not sure how Odoo behaves when this warning appears.


Thanks in advance!

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

When the limit_memory_soft is reached by an Odoo worker process, it means that the worker has exceeded its allowed maximum virtual memory usage. At this point, Odoo will attempt to reset or refresh the worker process.

Resetting or refreshing the worker process typically involves killing the current process and starting a new one to replace it. This process ensures that the worker's memory usage is reset to a minimal level, allowing it to continue processing new requests.

However, it's important to note that resetting or refreshing a worker process can lead to some loss of data, such as unsaved user input or partially completed transactions. Therefore, it's important to monitor worker memory usage carefully and adjust the limit_memory_soft setting accordingly to prevent frequent resets.

Additionally, it's recommended to investigate and optimize the root cause of high memory usage, such as inefficient code or large data sets, to ensure optimal system performance.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 2 19
19981
0
thg 3 15
4544
0
thg 7 25
2488
1
thg 5 23
3529
2
thg 8 22
7373