Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3622 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 19
19971
0
mar 15
4543
0
lug 25
2475
1
mag 23
3525
2
ago 22
7372