High memory usage with SearchStream method in .NET client library
218 views
Skip to first unread message
Rohit Lalwani
unread,
Aug 9, 2022, 1:02:05 PM8/9/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.
Is there any way we can dispose the processed rows to free up memory?
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.