Closed grbinho closed 2 years ago
+1 I am running into this also.
I am not sure, but, it might be caused by how dynamic calls are cached by c# compiler.
https://github.com/dotnet/corefx/pull/15397 https://github.com/dotnet/corefx/issues/11934 https://stackoverflow.com/questions/41354549/memory-leak-when-using-callsite
This SDK is deprecated and no longer under active development.
Hi,
We are using
Splunk.Client
to export data from our Splunk instalation. At this moment we are querying our instance every minute for the previous minute of data. We are running a "Normal" search as demonstrated in you documentation.It looks like we are running into a memory leak when doing this.
Our result set contains 12 columns and between 20000 - 50000 records per query.
Here is the code we run:
This code is running in a loop. We are seeing a big number of objects being created, and not collected by GC (even when forcing on all generations).
While investigating we ran into this .NET bug report
The pattern used in your
SearchResult
class looks to be exactly what that bug report is explaining.Do you have any insight that might help us? Maybe an alternative way to do the query that does not use
SearchResult
, but gets raw string data (in CSV or some other format)?