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