Reputation: 505
I am new about memory management. I got one question when I was monitoring the memory of my application. Is that normal the heap memory used will increase by itself even there is no activity is going on? I observed that the "heap memory used" metric keep growing until the garbage collection happen. I thought that the heap memory used metric should not change until there is some activity occurring. Am I correct or not?
Upvotes: 1
Views: 51
Reputation: 131326
The memory monitor tool consumes memory to collect new data.
So it seems expected that the memory consumption increases even when your application does nothing.
Upvotes: 1