I have a simple application which is basically reading from two database sources and doing the comparison in a batch of 1000 rows. I saw that heap memory of the application started reducing after the certain time. Currently, the total no. of rows are less and I am able to complete it before it runs out of memory.
But I am curious to know why this is happening? Any ideas?
JVM Info:
JVM: OpenJDK 64-Bit Server VM (25.242-b08, mixed mode).
Java: version 1.8.0_242, vendor AdoptOpenJDK.
Java Home: /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre.
JVM Flags: .