Tagged articles
2 articles
Page 1 of 1
Python Programming Learning Circle
Python Programming Learning Circle
Jun 29, 2020 · Operations

Monitoring Memory Usage of a Running Python Program

This article explains how to monitor memory consumption of Python data‑processing scripts using operating‑system tools, the built‑in tracemalloc module, the resource module for sampling, and a threaded MemoryMonitor class to continuously track peak usage with minimal intrusion.

Memory Monitoringresourcetracemalloc
0 likes · 7 min read
Monitoring Memory Usage of a Running Python Program
MaGe Linux Operations
MaGe Linux Operations
Dec 18, 2017 · Backend Development

How I Traced and Fixed a Python DICOM Server Memory Leak

After deploying a Python server for receiving DICOM medical images, the author encountered severe memory consumption, investigated the leak using tools like gc, objgraph, tracemalloc, and pyrasite, identified a self‑referencing DicomFileLike object with a __del__ method, and resolved the issue by patching the code.

DICOMPythondebugging
0 likes · 8 min read
How I Traced and Fixed a Python DICOM Server Memory Leak