Sandip Nayak
05/11/2024, 1:58 AMinsert into sink_table (
with source as (
select
*
from streaming_source as t
inner join some_table as v
on t.datasource = v.datasource
and t.host = v.host
union all
select
*
from s3_source as t
)
select
ev.guid,
source.*
from some_other_table as ev
inner join source
on source.host = ev.host
and source.datasource = ev.datasource
)
I see that during checkpointing, the taskmanager is running out of heap space
Caused by: java.lang.OutOfMemoryError: Java heap space
or from jobmanager
org.apache.flink.runtime.jobmaster.JobMasterException: TaskManager with id xyz is no longer reachable.
am I doing something wrong here? would appreciate some pointers
Flink version: 1.18.1
streaming_source size: 100GB
s3_source size: 80 GB
instance used: i3en.xlargeNicholas Erasmus
05/11/2024, 6:46 PMSandip Nayak
05/12/2024, 5:01 AMSandip Nayak
05/12/2024, 5:01 AMSandip Nayak
05/12/2024, 5:05 AMFlink - TimeoutException: Heartbeat of TaskManager with id someId timed out
or
Caused by: java.lang.OutOfMemoryError: Java heap space
I am wondering is there a way to prevent Task Heap from filling up all the allocated memorySandip Nayak
05/12/2024, 5:28 AMtaskmanager.memory.managed.fraction
to either increase the heap size or decrease it, neither of them seems to have worked, the task heap still gets occupied fullyMatan Perelmuter
05/12/2024, 8:39 AMSandip Nayak
05/12/2024, 5:17 PMstreaming_source --> Kafka
some_table --> filesystem (s3)
some_other_table --> Kafka
source --> Kafka
The tables don’t have timestamps, would temporal joins be less expensive?Matan Perelmuter
05/12/2024, 5:19 PMMatan Perelmuter
05/12/2024, 5:21 PMSandip Nayak
05/13/2024, 1:28 AMstreaming source and batch sources affects JVM heap and Manager memory differently, does anyone remember, what/how that is?Nicholas Erasmus
05/13/2024, 7:21 AMbasically what I see is, gradually the Task heap memory goes upto ~ 100% and then either I getwhat do you mean "gradually"? Is it something like this:
Nicholas Erasmus
05/13/2024, 7:22 AMSandip Nayak
05/14/2024, 9:06 AMNicholas Erasmus
05/14/2024, 9:40 AMeven faster, like 40 minutes without even checkpointA few questions: • what is your checkpoint interval? • what sink are you using?