Complete Record of Troubleshooting CPU Jitter in uWSGI + Django Stability Tests

Complete Record of Troubleshooting CPU Jitter in uWSGI + Django Stability Tests

uWSGI + Django Stability CPU Jitter Troubleshooting Record Problem Phenomenon In a stability test, a Django application published using uWSGI showed periodic CPU jitter. From the monitoring chart, it can be seen that a significant CPU usage peak occurs approximately every 4 hours, accompanied by a drop in memory usage: Preliminary Analysis: Attribution to GC Misconception First Instinct: Garbage Collection (GC) Observation: Memory drops when CPU peaks, looking like GC triggering. Time Pattern: Every ~4 hours, showing strong periodicity. Troubleshooting Direction: Check for scheduled GC (none found). Suspicion Direction: All Workers GC Simultaneously Through research, it was found that uWSGI’s pre-fork mode might lead to: ...

December 8, 2025 · 2 min · 667 words · Allen
Reflections on One Year of Golang: The Beauty of a Language Easy to Learn but Hard to Master

Reflections on One Year of Golang: The Beauty of a Language Easy to Learn but Hard to Master

I used to be a Python developer, having written Python for about 5 years. Recently, I started learning and using Golang for a year. Although my work during this period wasn’t entirely coding-focused, my overall feelings about Golang come down to two main points: Development is indeed very convenient; it is worth studying in depth and mastering as a long-term programming language. It is easy to get started, but not simple to use well. 1. Development Efficiency and Ecological Advantages Golang’s syntax is similar to Python, but its execution efficiency is higher. Its advantages include: ...

November 11, 2023 · 2 min · 579 words · allen