High memory usage with SearchStream method in .NET client library

137 views
Skip to first unread message

Rohit Lalwani

unread,
Aug 9, 2022, 1:02:05 PM8/9/22
to Google Ads API and AdWords API Forum
When using SearchStream method in .NET client library, the delegate is called for every SearchGoogleAdsStreamResponse object which has at maximum 10k rows.  It seems that while the delegate is running, the remaining rows are being cached in memory leading to huge memory usage for large reports.
  1. Is there any way we can dispose the processed rows to free up memory?
  2. Is there any way we can limit the memory used for caching the report?

Google Ads API and AdWords API Forum

unread,
Aug 11, 2022, 10:02:08 AM8/11/22
to Google Ads API and AdWords API Forum
Reposting the last inquiry (https://groups.google.com/g/adwords-api/c/Fv0XPwoKuyo) from the forum as it wasn't routed to our support queue.

Cheers,
Jinky
Google Ads API Team

Google Ads API Forum Advisor

unread,
Aug 11, 2022, 11:49:15 AM8/11/22
to adwor...@googlegroups.com
Hi,

You have reached the Google Ads API Forum.

I can see that you have two questions. To answer you generally, you may refer to this document as discussed here: Fine-tune your garbage collection (GC) in the .Net client library. 

Best regards,
Google Logo
Jinky
Google Ads API Team
 


ref:_00D1U1174p._5004Q2dJhtO:ref
Reply all
Reply to author
Forward
0 new messages