Skip to Content
Menu
This question has been flagged
1 Reply
3030 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
1
Feb 19
19302
0
Mar 15
3967
0
Jan 25
1751
1
May 23
3155
2
Aug 22
6941