I am using a for each loop to pick up multiple pdf files from temp directory and for each file using read pdf with OCR (Microsoft/Google cloud OCR) to read the pdf content for each file. All works well , but the problem is that there is an incremental increase on ram consumption with each cycle . I used the stand activity read pdf file still it consumes memory in loop.Any suggestion how this can be solved as after some time the 8GB system also hangs.
Appreciate any help