When updating large number of rows in a single transaction I get the exception:
"ERROR io.debezium.connector.oracle.logminer.LogMinerHelper [] - Mining session stopped due to the java.lang.OutOfMemoryError: Java heap space".
For the table with 20 fields of types (int, float, timestamp, date, string)*4 I could get the results listed in table:
For TaskManager heap space=540Mi, I could get 250k rows through, but failed on 300k.
For TaskManager heap space=960Mi, I could get 350k rows through, but failed on 400k.
Using SourceFunction created from OracleSource.builder(), startup-mode set to latest-offset,
and self-defined deserializer, where I added log.info to see if the problem starts after debezium/cdc-connector did it work, but Java Heap Space error occurs before the flow gets to the deserialization.
I've tried to provide the next debezium properties, but got no luck:
dbzProps.setProperty("log.mining.batch.size.max", "10000");
dbzProps.setProperty("log.mining.batch.size.default", "2000");
dbzProps.setProperty("log.mining.batch.size.min", "100");
dbzProps.setProperty("log.mining.view.fetch.size", "1000");
dbzProps.setProperty("max.batch.size", "64");
dbzProps.setProperty("max.queue.size", "256");