Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
1 Balas
2259 Tampilan

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
Buang

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

Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jul 25
1934
2
Apr 25
4283
4
Apr 25
12370
5
Mar 25
19463
1
Feb 25
3718