I have a WebService where I receive multiple requests at once with multiple-page files (fixed form) to process.
I used as an example the project "FlexiCapture Processors Pool" to develop every necessary method and class. And I'm using the OutprocLoader() method to load my Engine.
I have a server with 4 physical cores (totaling 8 logical processors), 32GB of RAM and 931GB of disk. Accompanying the processing of some files, I see that the memory allocation does not come in half, but I'm getting some exceptions:
"Insufficient memory to continue the execution of the program"
"Not enough storage is available to process this command"

I often also see that my processor finishes processing a file, but it remains unavailable, and I have to restart the application to make it work again. Or even I have an incorrect value for the count variable in the following context:

var count = 0;
while (true) {
   var document = processor.RecognizeNextDocument ();
   ...
   count ++;
   ...
}

 

I found this article explaining about the same memory problem in FineReader, and would like to know how to apply these solutions also to FlexiCapture Engine 11.

I would also like to know if I need to restart the pool when it reaches a very high usage count, and how could I do that.