Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2263 Vistas

When attempting to activate a new feature, the connection is lost ...!

odoo.sh log :  Worker process (pid=94) was killed by signal 9 (most likely hit a memory limit, please check your custom modules memory usage.)"

This message appears in the log, and despite increasing the worker count, the issue remains unresolved

Avatar
Descartar

Hi Ibrahim,
Have you tried to configure your limit_memory_soft and limit_memory_hard?

Mejor respuesta

Hi,

Investigate custom module memory usage:

As the error message suggests, the first step is to analyze your custom modules for any potential memory leaks or inefficient operations. Common culprits include:
Extensive database queries, especially those returning large datasets.
Complex computations that hold intermediate results in memory.
Large data structures that are not properly released after use.
Review your custom module code and try to identify these areas for optimization. You can use profiling tools available for Odoo to pinpoint the specific functions and lines of code consuming excessive memory.

 Adjust worker memory limit (if applicable):
If your server has sufficient physical RAM available, you can try increasing the memory limit for individual worker processes. This can be done by modifying the limit_memory_hard and limit_memory_soft parameters in your Odoo configuration file. Be cautious with this approach, as allocating too much memory per worker can lead to other resource constraints.


Hope it helps

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jul 25
1936
2
abr 25
4324
4
abr 25
12381
5
mar 25
19488
1
feb 25
3723