Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3627 Zobrazení

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!

Avatar
Zrušit
Nejlepší odpověď

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.

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 19
19984
0
bře 15
4545
0
čvc 25
2492
1
kvě 23
3530
2
srp 22
7373