We've set the taskmanager's memory with `taskmanag...
# troubleshooting
a
We've set the taskmanager's memory with
taskmanager.memory.process.size
, but we observe the java process using more memory than than, which subsequently grinds the instance to a failure as the physical memory starts running out. How can we figure out what is eating that memory? It's a streaming job that uses RocksDB coded with PyFlink and sql, no custom operators. Flink 1.18.1
r
A OOME would indicate you are running out of heap. If the process grows bigger than configured, something is allocating memory off heap. You can try using Java's Native Memory Tracking, but I had no luck with that approach. Using async-profiler's allocation tracking might help? I haven't tried it yet but it is on my list. What helps in my experience is fiddling with these settings. You can see the computed memory budgets for the different memory pools in the Flink UI. By increasing the jvm overhead (by default it is 1 gb) so say 4gb, you'll increase the probability of the error happening:
taskmanager.memory.jvm-overhead.min
taskmanager.memory.jvm-overhead.max
taskmanager.memory.jvm-overhead.fraction