Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High leader memory usage with millions of messages (jetstream) #5596

Open
michaelmohamed opened this issue Jun 26, 2024 · 1 comment
Open
Labels
defect Suspected defect such as a bug or regression

Comments

@michaelmohamed
Copy link

michaelmohamed commented Jun 26, 2024

Observed behavior

I am using nats-server w/ jetstream via helm charts on k8s to process about 40 million messages.

I have 30 pull-based consumers.

The leader (nats-2) seems to be using a lot of memory compared to the nats-0 and nats-1. Is this normal? Is there a way to minimize the amount of memory used?

image

Other info:

image image

Expected behavior

Lower memory use.

Server and client version

nats-server: v2.10.16
nats-py: v2.7.2

Host environment

I am using nats-server via helm charts on k8s (EKS)

Steps to reproduce

No response

@michaelmohamed michaelmohamed added the defect Suspected defect such as a bug or regression label Jun 26, 2024
@michaelmohamed michaelmohamed changed the title High memory usage Jun 26, 2024
@michaelmohamed michaelmohamed changed the title High leader memory usage with millions of messages Jun 26, 2024
@neilalexander
Copy link
Member

Can you please provide memory profiles? If you'd rather not attach here then please feel free to email them to neil@nats.io.

Using your system account:

nats server request profile allocs ~/path/to/folder --level=0

Please also provide the output of free -m from within each pod.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
2 participants