Behavior of ThreadedCachingBlockSource
Oracle Product: Oracle JDBC Driver 21.1.0.0
Question:
About the byte[][] array in "stack" field of oracle.jdbc.dirver.BlockSource$ThreadedCachingBlockSource objects hold by each oracle.jdbc.driver.PhysicalConnection object:
- What is the condition that the size of byte[][] array is expanded?
- What is the condition that the element of each byte[] array is removed (null cleared)?
- How to avoid these expantion/compaction behavior?
I'm confused that these expantion/compaction behavior makes many large byte[] array object to be monotonically increased. (it will fill the Tenured area, and will be collected by FullGC only)