aspose file tools*
The moose likes Beginning Java and the fly likes Is this a memory leak condition ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Is this a memory leak condition ?" Watch "Is this a memory leak condition ?" New topic
Author

Is this a memory leak condition ?

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

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.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
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.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

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.
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
OK, well now it doesn't look like a leak. Well, not a big one, anyway.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is this a memory leak condition ?