Good day everyone!
We recently upgraded from Orthanc 1.12.4 to 1.12.11 due to fixed CVEs. After this, we are seeing large increases in processing times when sending data to Orthanc. Especially in regards to sending deformable registrations to Orthanc.
We have 3 different registrations used for testing/development, all different sizes. Each one takes significantly longer to upload to 1.12.11 as opposed to 1.12.4. I have also checked all versions in between, 1.12.11 is the only version with slowdowns.
Wondering if anyone else has seen this behavior? We are seeing this with both the official Windows installer and the jodogne/orthanc-plugins docker image.
Example Deformable Registration file that exhibits this issue:
429_MB.dcm
This takes over 2 minutes to upload (via the Orthanc Explorer upload tool) in Orthanc 1.12.11, but under 3 seconds in Orthanc 1.12.10.
Based on some AI help, the issue appears to be related to new functionality in FromDcmtkBridge.cpp which is parsing tags with VR = OF. Indeed, if I take the file above and change tag (0064,0009) to an Explicit VR of OW instead of OF (generally not advisable behavior of course; it was just done for testing in this case), then the file uploads in less than 3 seconds, just like in Orthanc 1.12.10.
I also find that after the initial upload, Orthanc continues to work in the background for several minutes, eventually producing another file that is larger than the originally uploaded file (in this case, 610 MB). This isn’t a DICOM file, and I’m not quite certain what it is.
While this is being produced, Orthanc can consume large amounts of memory (over 12 GB in this case):
Hi,
The ingest performance has been fixed in this commit. You may already try it in the mainline binaries
What you observe later on is the DICOMweb plugin caching its Metadata which takes a huge amount of time and memory since there is an array with 100M float entries (that was previously considered as a binary blob that was therefore not parsed).
You can disable Metadata caching by setting the DicomWeb.EnableMetadataCache configuration to false.
Since the files are very specific, I won’t fix their metadata caching immediately and have added it to our long term TODO.
Hope this helps,
Alain
Since you seem to be using Orthanc in the scope of a commercial activity, do not hesitate to support the project by making a donation or by purchasing commercial support.
1 Like
Excellent, thank you for the reply! I can confirm that replacing Orthanc.exe with the Mainline version drops the upload time of a 429 MB Deformable Registration .dcm file to under 2 seconds.
1 Like