I've set up a filebeat service(version 6.3.0) running on windows2008 R2.
I found the memory has gone up all the time
Does filebeat have potential memory leaks?
I did a quick dive into the code to know where the values are coming from.
Process Total is the total allocated memory over time.
// TotalAlloc is cumulative bytes allocated for heap objects.
//
// TotalAlloc increases as heap objects are allocated, but
// unlike Alloc and HeapAlloc, it does not decrease when
// objects are freed.
Note it does not decrease when object are freed.
Active is Alloc.
// Alloc is bytes of allocated heap objects.
//
// This is the same as HeapAlloc (see below).
Alloc uint64
If you use a tool like process explorer you will get a bit more information about the actual memory of the process.
So I don't think there is a leak, but I do believe the value of "Process total" is a bit confusing.
Is the process crashes at some point or the memory keep growing?
I am looking at your configuration and I am trying to understand where the memory goes.
I see a lot of options that diverge from the default configuration that could potentially increase the memory usage. The options can increase performance but its at the price of increased memory usage.
I would like to see the memory usage from a default configuration so have something to compare with.
queue.mem.events, this option is the maximum of events in memory, default is 4096, your values 8196.
harvester_buffer_size, This is the buffer read size from the harvester, default is 16384 your value is 163840
output.kafka.bulk_max_size, This is the maximum bulk size , default is 2048 your value is 20480
channel_buffer_size, Per Kafka broker number of messages buffered in output pipeline. The default is 256, your value is 256000.
The channel_buffer_size this is a really high value vs the default, can you revert the options above to their default values and report the memory usage?
Hello @Junble Can you start Filebeat using the built in http profiler? The command will look like this:
./filebeat -httpprof localhost:6060
let it run for a good amount of time and use your browser to go to the url http://localhost:6060/debug/pprof/heap and attach the heap dump here. I will be able to play with it.
We have an open PR for a goroutine leak, but I don't know if it's the same problem as you.
That's what I did,started Filebeat with command:. /filebeat -httpprof localhost:6060 But use my browser to go to the url:http://localhost:6060/debug/pprof/heap Unreadable code ,what do I need to install?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.