Extremely large memory usage #2026
-
We have an unmanaged app calling a managed COM Interop dll that uses Microsoft.Graph client library version 4.40 to manage calendar items in O365. In some cases, we have observed extreme memory usage by the application. The memory usage counters grow by as much as 1GB/minute. I have tried various code changes to encourage the garbage collector to reduce the memory usage. The latest attempt involved not caching any GraphServiceClient or ICalendarRequestBuilder objects outside of the function call that uses them in hopes that the garbage collecter would collect them. The memory that is allocated appears to eventually get returned to the system. Does anyone have any ideas what I should be looking at to figure this out? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Some APIs may return really large response values that could be optimized by using Any chance you are able to correlate this with an specific API/endpoint being called on the graph to help understand this better? |
Beta Was this translation helpful? Give feedback.
-
We found the problem. It was in the unmanaged code. We no longer have a problem. Thanks for the response. |
Beta Was this translation helpful? Give feedback.
We found the problem. It was in the unmanaged code. We no longer have a problem. Thanks for the response.