Hi All, I want to understand how does Flink manag...
# troubleshooting
m
Hi All, I want to understand how does Flink manage heap memory and what really drives the utilization. I have two apps; one state heavy and has multiple data streams with some complex logic (parallelism is 8); the other one is extremely simple (parallelism is 1) and has no state. The heap memory utilization of the first one is about 70-80% average. The second has a random pattern with heap touching 85% at times and as low as 25%. I'm trying to understand why the second app fluctuates to heap utilization of 80% randomly. Any thoughts or insights would be appreciated. Thanks!
t
For second one, my guess is • Memory requirements may be varying as the job is running. • Heap memory allocated may be more than required, major GC is not kicking in until heap usage reaches 80% and then GC kicks in reducing heap usage to 25% (closer to actual heap usage at that point).