Git Product home page Git Product logo

Comments (9)

biuboombiuboom avatar biuboombiuboom commented on June 10, 2024 2

The proposed fix is now merged into the master branch. Please confirm if this resolves the memory leak for you.

Yes, It is effective

from vector.

jszwedko avatar jszwedko commented on June 10, 2024

Hi @biuboombiuboom ,

There's not a lot of detail here. What leads you to believe there is a memory leak? If you are feeling motivated you could try running Vector under valgrind and providing the profile here.

from vector.

nsweeting avatar nsweeting commented on June 10, 2024

We're actually seeing a similar issue running the latest version. With a kafka source and a clickhouse sink. A sustained flow of messages seems to inevitably result in OOM. You can see the behaviour in these charts. We have very bursty workloads. Each workload burst results in sustained CPU use (makes sense) as well as continued memory growth. If the work stops - the memory goes back down. But if the work continues... it will OOM.

Screenshot 2024-05-02 at 11 21 34 AM

from vector.

biuboombiuboom avatar biuboombiuboom commented on June 10, 2024

image

image

ack_stream has too many FinalizerEntry not consumed.

Try sync store offsets,and disable BatchNotifier.

Or move ack_stream.next() before messages.next() & with biased.

from vector.

bruceg avatar bruceg commented on June 10, 2024

I'm not clear what you mean by the following:

Try sync store offsets,and disable BatchNotifier.

The second suggestion is spot on and definitely worth a try. The ack_stream should always be checked before consuming new events, because eventually it will run dry to allow progress for new data.

from vector.

biuboombiuboom avatar biuboombiuboom commented on June 10, 2024

I'm not clear what you mean by the following:

Try sync store offsets,and disable BatchNotifier.

The second suggestion is spot on and definitely worth a try. The ack_stream should always be checked before consuming new events, because eventually it will run dry to allow progress for new data.

Sorry ,I didn't express it clearly, please disregard the first suggestion

from vector.

bruceg avatar bruceg commented on June 10, 2024

I have pushed up a possible fix for this issue. If you are able to build Vector from source, check out PR #20467 and try the resulting binary.

from vector.

bruceg avatar bruceg commented on June 10, 2024

The proposed fix is now merged into the master branch. Please confirm if this resolves the memory leak for you.

from vector.

jszwedko avatar jszwedko commented on June 10, 2024

Thanks for confirming! And for suggesting the original fix. I'll close this issue out.

from vector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.