Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
3628 Widoki

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!

Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
lut 19
19984
0
mar 15
4545
0
lip 25
2492
1
maj 23
3530
2
sie 22
7373