Forums Register Login

Is this a memory leak condition ?

+Pie Number of slices to send: Send
I've managed to screen capture this graph of heap memory usage via JConsole on my running application.

Can I conclude, looking at the graph, that I have a memory leak ? Thanks.
+Pie Number of slices to send: Send
It looks like a leak, but one cannot be sure from the information you have given.

Does your application have a good reason to store more and more data or should it run in approximately constant heap space? If the latter, then leak looks likely.

Has a full GC been done? The drop in the middle of the graph looks like a GC, though it could be due to a real change in your application's behaviour - again I can't know without information about your application.
+Pie Number of slices to send: Send
Peter,

In summary, the application is a service that generates sequence numbers from a database. Connections are being handled by Apache DBCP connection pool.

I took your advice and did a GC and looks like it helped a lot. The new GC'ed graph is here.
+Pie Number of slices to send: Send
OK, well now it doesn't look like a leak. Well, not a big one, anyway.
I'm still in control here. LOOK at this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 934 times.
Similar Threads
graphs in java profile
Comparing Memory Graphs!
How to detect memory leak ?
arrayList.clear() VERSUS arrayList = new ArrayList()
Memory leak?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:33:57.