if key of keyby operator is unbound ,the memor...
# troubleshooting
u
if key of keyby operator is unbound ,the memory usage will grow for ever ?
plusone 2
d
Not necessarily. If you are holding onto state for every key (and never clearing it), then you'll have unbounded state. And if on top of that you are using a heap-based state backend, then memory usage will grow forever.
u
Thanks
I am using rocksdb state backend, after processing logic in onTimer method , i clear the state,will the memory usage grow forever?
d
That should be fine — the memory usage should not grow forever. I don’t remember exactly which versions of Flink had this problem, but a few versions ago there was a bug in the version of rocksdb we were using at the time that would sometimes lead to out-of-memory errors. So if you are having problems, try upgrading to a newer version of Flink.
u
Thanks