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

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
Discard

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

Best Answer

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
Discard
Related Posts Replies Views Activity
1
Jul 25
1921
2
Apr 25
4254
4
Apr 25
12355
5
Mar 25
19435
1
Feb 25
3709