Memory usage when replaying messages with filter subject on a large stream #4906
-
Hi, I am observing a sudden memory explosion on our nats servers when we replay some messages from a (large?) stream with a filter subject.
I'd like to know if:
Here is the stream configuration
The {domain} part of the subject is fixed The problem is reproducible with the cli or nats.js whenever we want to retrieve the messages of a specific {resource}
Last closing observations:
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 22 replies
-
Is your consumer flow controlled at all via MaxAckPending or some other mechanism? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
You can use the NATS cli to also grab the profiles. |
Beta Was this translation helpful? Give feedback.
-
I think we should be good with 2.10.11 release which happened yesterday. Feel free to close. |
Beta Was this translation helpful? Give feedback.
This has been merged to main, so be good to have you test it.
The linear walk could be cheaper if the walk happened within a sync interval of a msg block, which by default is 2m. The block cache of data expires fairly quickly but the subject indexing info per block, called fss, will linger up to the sync window if their is no activity in the block itself.