Share via

container app memory usage

SriRaghavendran Prabhakaran 425 Reputation points
2024-01-10T15:10:21.8066667+00:00

Hello,

I have 2 apps deployed to containers app of Azure. here I am using DAPR for the communication between the apps, mainly Azure event hubs as DAPR component. when i look into memory usage of both the apps in Performance test, App1 has consumed high memory than the App2. the configuration of both the apps below

App1

DAPR Event hub configuration of type binding

DAPR state store

App2

DAPR Event hub configuration of type binding

Let me know do state store increase the memory use of container apps?

thanks

sri

Azure Container Apps
Azure Container Apps

An Azure service that provides a general-purpose, serverless container platform.

0 comments No comments

Answer accepted by question author

JananiRamesh-MSFT 29,446 Reputation points Moderator
2024-01-10T15:46:03.4666667+00:00

@SriRaghavendran Prabhakaran Thanks for reaching out. Yes, the Dapr state store can increase the memory usage of container apps. The state store is used to store and retrieve state data for your application, and it can consume memory as it stores more data. This is likely why you’re seeing higher memory usage for App1 compared to App2, as App2 does not use a state store.

To reduce the memory usage of your application, you can try optimizing the size and complexity of the state data being stored, or reducing the number of instances of your application that are running. You can also consider using an external state store, such as Azure Cache for Redis or Azure Cosmos DB, which can provide more scalable and efficient storage for your state data.

Please let me know if you have any further queries.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

Was this answer helpful?

1 person found this answer helpful.
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.