Thank you so much for your response.
Ok, it's clear that zip file is stored in RAM, thank you again.
I'm trying to use Orthanc jobs management, in particular with this configuration (always in Docker):
"LimitJobs" : 1
with async call to following endpoint:
http://ip:port/studies/study_id/archive
In this way Orthanc produces a queue (pending jobs), when job is complete another one can be processed.
The problems are:
1) In jobs queue Orthanc does not consider downloads, but only archive generations: so, when zipping operation is done, completed zip file is stored in RAM and in the meanwhile next job (zipping) starts. I want to avoid multiple operations (zipping/downloading).
Is there a solution to manage downloads like archiving jobs?
2) When Orthanc fails due to OutOfMemory, processing jobs fail, but they resubmit themselves.
Is there a solution to avoid automatic retry/resubmit?
I read this happens because Orthanc save jobs in its db (also if I use indexing in fs?), so when it is ready after OutOfMemory, failed jobs start again.
I also read that SaveJobs manages above feature, but also set as false I can't avoid automatic retry.
"By default, Orthanc saves the jobs into its database (check out the SaveJobs option). If Orthanc is stopped then relaunched, the jobs whose processing was not finished are automatically put into the queue of pending tasks. The command-line option --no-jobs can also be used to prevent the loading of jobs from the database upon the launch of Orthanc."