Replies: 7 comments 12 replies
-
Can you please post the consumer infos as well? |
Beta Was this translation helpful? Give feedback.
-
On the graphics above Unprocessed messages value increased from ~0-1000 to 2,800,000. Now I see that Unprocessed messages decreasing gradually and memory usage decreasing as well. |
Beta Was this translation helpful? Give feedback.
-
Feel like the Deleted Messages being over 175 million is more likely to be what's holding the memory. |
Beta Was this translation helpful? Give feedback.
-
How big are the messages in general? |
Beta Was this translation helpful? Give feedback.
-
Could you share how you are consuming the messages (which API calls)? Are you using MaxBytes when fetching? |
Beta Was this translation helpful? Give feedback.
-
re: |
Beta Was this translation helpful? Give feedback.
-
I gathered more information, if someone interested |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello. I noticed this behaviour sometimes and don't know how to explain it.
We have 1 stream configured with disk storage:
At some time, consumer fails during deployment for a while (broken deploy, for example) and stops to consume messages. Publisher continues to publish messages. As a result, stream data size grows, "Unprocessed Messages" in
nats consumer info
grows.My expectation
It's OK that data size grows in that case, because nats saves unprocessed messages to disk. "Unprocessed Messages" counter increases. Host memory usage should not increase significantly (because messages saved to stream on disk, not in memory). After consumer fixes problems and continues to consume messages from stream, "Unprocessed Messages" should decreasing.
In fact
Increasing value of "Unprocessing Messages" leads to host memory usage increasing, and I don't understand why
Beta Was this translation helpful? Give feedback.
All reactions