Skip to content

Odd Memory Usage #1135

Description

@jakub-ant

Hi!

I've been using this library for a while and noticed an unusual behavior regarding memory usage. When my consumer receives a lot of messages, the Node.js application's memory usage naturally increases. However, I've observed that while heap usage decreases after processing the messages, the .rss (resident set size) memory remains significantly higher than expected.

Here is an example of what I'm experiencing:

  • Initial Memory Usage:
    RSS: 200 MB
    Heap: 50 MB
  • During Message Processing:
    RSS: 1.5 GB
    Heap: 500 MB
  • After Processing:
    RSS: 1 GB
    Heap: 60 MB

Is this the expected behaviour?

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions