Skip to content

[Azure AI Services] Document Analysis SDK Response - Memory Issue #41109

Open
@mehmetaltuntas

Description

@mehmetaltuntas

Library name and version

Azure.AI.FormRecognizer 4.1.0

Query/Question

Hi,

I am using Azure.AI.FormRecognizer SDK 4.1.0 to call up AnalyzeDocumentAsync and receive an Operation object. Once I receive the object, I loop through it and pull out contents, tables etc. I am using prebuilt-read model.

I do attempt to send a file worth 10 MB or more across and waiting for it to be completed via WaitUntil.Completed and once the response is given, I do get up to 1.2 GB memory usage. This actually causes a out-of-memory exception in a container which has limited memory. I do deploy in Azure Container Apps as a job/console app.

I also tried to use the API, however, I cannot even receive the response result object via postman tool.

I would like to know what is the best approach using the SDK as well as handling the response object size so that it doesn't cause any memory usage issue.

Thanks

Environment

.NET SDK:
Version: 7.0.203
Commit: 5b005c19f5

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22621
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.203\

Host:
Version: 7.0.5
Architecture: x64
Commit: 8042d61b17

.NET SDKs installed:
7.0.203 [C:\Program Files\dotnet\sdk]

Metadata

Metadata

Assignees

Labels

ClientThis issue points to a problem in the data-plane of the library.Cognitive - Form Recognizercustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK teamquestionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions