+1 vote
30 views

Hi all,

Sometimes when i start my server instance I get this error:

 Can't start new thread 

Any idea?

in Server by (3.7k points) | 30 views

1 Answer

+1 vote

1/the number of workers should be based on the number of cores (not thread) in the machine (  nbr workers = (#CPU * 2) + 1 )

2/ Worker limits should be configured based on the hardware configuration to avoid resources exhaustion Warning: 

exple with server( 4 CPU, 8 Thread)

limit_memory_hard = 1677721600
limit_memory_soft = 629145600
limit_request = 8192
limit_time_cpu = 600
limit_time_real = 1200
max_cron_threads = 1
workers = 8

You can find here how to configure this limits:

https://www.rosehosting.com/blog/how-to-speed-up-odoo/

https://www.odoo.com/documentation/11.0/setup/deploy.html

by (160 points)
202 questions
178 answers
34 comments
112,141 users