exception System.OutOfMemoryException

Y-3370 20 Reputation points
2024-03-13T09:32:54.15+00:00

While querying data from cosmos db, getting Inner exception System.OutOfMemoryException intermittently at System.Threading.Tasks.Task.ScheduleAndStart

_container.ReadItemAsync

<GetItemAsync>d__3.MoveNext

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
{count} votes

Answer accepted by question author
  1. SSingh-MSFT 16,461 Reputation points Moderator
    2024-03-13T10:34:23.3+00:00

    Hi Yadav •,

    Welcome to Microsoft Q&A forum.

    As I understand, you are getting OutOfMemoryException in Azure Cosmos DB.

    Could you please check if you are not exceeding the resource limits:

    User's image

    You could try scaling up the DB for better performance.

    Is the account with Provisioned, Serverless or Autoscale mode?

    Awaiting your reply.

    Thanks

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.