# High memory consumption during ingestion of large (1.5 GB) multi-frame instances

**URL:** https://discourse.orthanc-server.org/t/high-memory-consumption-during-ingestion-of-large-1-5-gb-multi-frame-instances/6408
**Category:** General
**Created:** [February 22, 2026, 8:43pm UTC](https://discourse.orthanc-server.org/t/high-memory-consumption-during-ingestion-of-large-1-5-gb-multi-frame-instances/6408 "2026-02-22T20:43:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vicholp](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/vicholp/32/2469_2.png) [@vicholp](https://discourse.orthanc-server.org/u/vicholp)
#### Post date: [February 22, 2026, 8:43pm UTC](https://discourse.orthanc-server.org/t/high-memory-consumption-during-ingestion-of-large-1-5-gb-multi-frame-instances/6408/1 "2026-02-22T20:43:33Z")

</div>

Hi everyone,

I have been doing some research regarding Orthanc’s behavior under heavy load, and I have found some unexpected behavior when ingesting large multi-frame instances.

Related issue: [Possible Memory Leak with Multiframe DICOM (Orthanc+OHIF)](https://discourse.orthanc-server.org/t/possible-memory-leak-with-multiframe-dicom-orthanc-ohif/3988)

As already discussed in the related issue, when working with this type of instance Orthanc require a huge amount of memory.

In our context, we have received instances with a size of 1.5 GB, and Orthanc requires 7.1 GB to ingest this instance, with compression. Without compression 5.7 GB.

I’ve done this test with Orthanc 1.12.7 built from source, with the default `orthanc.json`. I leave the massif information attached. The instance does includes patient information in the pixel data, and I could not find a way to anonymize it, but the issue should be easily reproducible with any instance.

In our infrastructure, allocating 8 GB of RAM to each of our five deployed Orthanc instances is a significant waste of resources, especially since these instances typically only require 300–500 MB for standard operations.

From what we can gather, this behavior occurs because Orthanc loads the instance into memory for every operation: receiving, hashing, compression, etc. Each of these steps appears to use approximately 1.5 GB of RAM concurrently.

Has anyone else found a way to mitigate this, or is there a plan to optimize the streaming/handling of large multi-frame files?

I am available to run more tests or provide additional data if that would be helpful

Cheers!

[massif\_withoutcompression.out.46778.txt](https://discourse.orthanc-server.org/uploads/short-url/cmMIHZHrMUx48CzCDBlKVEFO3aE.txt) (244.8 KB)

[massif\_withcompression.out.50187.txt](https://discourse.orthanc-server.org/uploads/short-url/6gZWSp9oaIcuG7deDUtLPddJXnx.txt) (234.0 KB)

---

<div class="post-metadata">

### Author: ![alainmazy](https://discourse.orthanc-server.org/user_avatar/discourse.orthanc-server.org/alainmazy/32/1576_2.png) [@alainmazy](https://discourse.orthanc-server.org/u/alainmazy)
#### Post date: [February 23, 2026, 4:31pm UTC](https://discourse.orthanc-server.org/t/high-memory-consumption-during-ingestion-of-large-1-5-gb-multi-frame-instances/6408/2 "2026-02-23T16:31:42Z")

</div>

Hi @vicholp

There are very long term plans to work on “streaming” to minimize Orthanc usage when possible.

However, this requires hundreds of hours of work and I’m not sure we’ll find someone to fund these developments 😉

Best,

Alain.

&nbsp;

&nbsp;

* * *
If you find this software and the support helpful, consider [making a donation](https://opencollective.com/orthanc) to support the project’s continued development — every contribution makes a difference!
