Very high memory consumption and memory leak on Linux container

Greetings!

We are running Aspose.OCR in Docker linux ontainer and every OCR operation consumes a lot of ram and some of this RAM is not freed.
Here’s a memory consumption stats for container running two OCR operations:
image.png (66.8 KB)

And one more memory graph after container restart and OCRing File2:
image.png (75.5 KB)

Code I use:

                Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
                using OcrInput input = new OcrInput(InputType.PDF);
                input.Add(temporaryFileIn);

                Aspose.OCR.RecognitionSettings settings = new RecognitionSettings();
                settings.Language = Language.Latin;
                settings.UpscaleSmallFont = true;
                settings.DetectAreasMode = DetectAreasMode.TABLE;

                var ocrResult = recognitionEngine.Recognize(input, settings);
                Aspose.OCR.AsposeOcr.SaveMultipageDocument(temporaryFileOut, Aspose.OCR.SaveFormat.Pdf, ocrResult);

Why this happens? Is there any way to limit memory consumption of OCR?

Test files I use:
File1.pdf (308.4 KB)
File2.pdf (371.0 KB)

@EvgeniyMikhailov

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): OCRNET-931

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.