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

155 views
Skip to first unread message

cseb...@gmail.com

unread,
Jun 26, 2021, 1:36:51 PM6/26/21
to Django users
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

cseb...@gmail.com

unread,
Jun 26, 2021, 9:06:47 PM6/26/21
to Django users
UPDATE: The Django app stays up longer without these switches but now after about half a day the MEMORY spikes?

I'm seeing the % memory used go up to around 80% which again freezes this Django app.

I'm enabling verbose logs now.  Any idea what would cause this behavior?

cs
Reply all
Reply to author
Forward
0 new messages