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
2265 Zobrazení

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
Zrušit

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
čvc 25
1937
2
dub 25
4330
4
dub 25
12381
5
bře 25
19493
1
úno 25
3725