fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.72k stars 1.56k forks source link

CPU Continuously growing with Fluent-bit version > 2.0.14 on Windows Server 2019 with Multiline Filter Plugin #8567

Open ganga1980 opened 6 months ago

ganga1980 commented 6 months ago

Bug Report

Describe the bug CPU Continuously growing with Fluent-bit version > 2.0.14 on Windows Server 2019 with Multiline Filter Plugin. This is not issue with Fluent-bit version 2.0.14. Tried all the versions 2.1. and 2.2., and all these versions has same issue.

To Reproduce


- Steps to reproduce the problem:
1. Apply this yaml on to Kubernetes cluster with windows server 2019 nodes
kubectl apply -f https://raw.githubusercontent.com/microsoft/Docker-Provider/gangams/fix-windows-agent-cpu-breaches/test/fluent-bit-windows.yaml
2. Deploy some test workloads for example
kubectl apply -f https://raw.githubusercontent.com/microsoft/Docker-Provider/gangams/fix-windows-agent-cpu-breaches/test/scenario/multiline/dotnet-win.yaml
kubectl apply -f https://raw.githubusercontent.com/microsoft/Docker-Provider/gangams/fix-windows-agent-cpu-breaches/test/scenario/multiline/golang-win.yaml
kubectl apply -f https://raw.githubusercontent.com/microsoft/Docker-Provider/gangams/fix-windows-agent-cpu-breaches/test/scenario/multiline/java-win.yaml
kubectl apply -f https://raw.githubusercontent.com/microsoft/Docker-Provider/gangams/fix-windows-agent-cpu-breaches/test/scenario/multiline/python-win.yaml

**Expected behavior**
CPU shouldnt grow increasingly grow and usage should be same as fluent-bit version 2.0.14.

**Screenshots**
CPU Usage  with fluent-bit version 2.0.14 vs fluent-bit version 2.2.2
![image](https://github.com/fluent/fluent-bit/assets/20712167/1507c5b8-7e56-4d44-b4ba-112b959c3b27)

**Your Environment**
<!--- Include as many relevant details about the environment you experienced the bug in -->
* Version used: Fluent-bit 2.0.14 and Fluent-bit 2.2.2
* Configuration: Kubernetes with Windows Server 2019
* Environment name and version (e.g. Kubernetes? What version?): Kubernetes, version : v1.26.12
* Server type and version: Windows Server 2019
* Operating System and version:
* Filters and plugins:  Tail, Multiline and Output

**Additional context**
<!--- How has this issue affected you? What are you trying to accomplish? -->
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
tieptoi commented 3 months ago

Same as my issue #8925

yangliuqing5470 commented 4 weeks ago

because multiline parser is slower with fluent-bit version >=2.1.0,and i compare the commit,it's "filter_multiline: updated to use the new log event abstraction layer" commit casue the issue