Saturday, June 26, 2021

Why turning off these uWSGI options fixed problem with 100% CPU spikes and freezing?

One Django website was freezing about every HOUR with no indication in logs what
the problem was.  I was seeing CPU utilization spike to 100%.

I removed these switches below and it seemed to have fixed the problem.

                               --master                                        
                               --enable-threads                          
                               --pcre-jit                                    
                               --thunder-lock

Is there some problem with threads or something?  What is weirder is that
everything has been fine for MONTHS.  I didn't change anything so not sure
why this week uWSGI started blowing up.

Here is my system info:

uWSGI version:    2.0.19.1
Django version:  2:2.2.12-1ubuntu0.7
on Ubuntu 20.04 LTS with following Linux kernel:
Linux server 5.4.0-1030-aws #31-Ubuntu SMP Fri Nov 13 11:40:37 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Sincerely,

Chris

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/dd8d921f-01a7-4a51-9482-a9696a423c3fn%40googlegroups.com.

No comments:

Post a Comment