Java heap size increasing

I will compile the jar file and I write to the log every month every time to check the threads and memory situation.

Attached is the start of the log and the log of the end of the day after this software got stuck and stopped working.

In the middle of the day, several automatic operations took place. I got quotes in about 40 seconds and ended up taking care of each of the quotes until the next.

Plus, every 4 seconds I write a map with information in the database.

Any ideas why the heap size is increasing? (look at currHeapSize)

morning: enter image description here

evening: enter image description here

0


source to share


1 answer


Any ideas why the heap size is increasing?

These are classic symptoms of a Java memory leak. Somewhere in your application, you have a data structure that accumulates more and more objects and prevents them from being garbage collected.



The best way to find such a problem is to use a memory profiler. Answer this question .

+1


source







All Articles