Try out OpenResty XRay for free: https://openresty.com/en/xray/
In this tutorial, you will learn how to analyze the quantitative memory distribution inside a web application based on Python’s Django framework. We can pinpoint the most memory-consuming Python objects via detailed data reference paths found by OpenResty XRay. OpenResty XRay will automatically generate and interpret the Python GC object memory distribution flame graphs invented by ourselves. You can use it to examine any Python object in detail, such as a string or a dictionary.
Text version of this tutorial: https://blog.openresty.com/en/django-...
OpenResty XRay is a dynamic-tracing product that automatically analyzes your running applications to troubleshoot performance problems, behavioral issues, and security vulnerabilities with actionable suggestions.
Under the hood, OpenResty XRay is powered by our Y language targeting various runtimes like Stap+, eBPF+, GDB, and ODB, depending on the contexts.
OpenResty XRay is a truly non-intrusive dynamic analysis, which does not require installing any special modules or plugins in the target application, does not require recompiling the target application, and even does not require restarting the running process.
Music: https://www.bensound.com
0:06 Problem: high memory usage
0:34 Open the OpenResty Web console
0:50 Use the guidede analysis feature of OpenResty XRay to analyze the Django application
2:05 Analysis Reports
3:28 Open the vim editor
5:47 What is OpenResty XRay