• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is this a memory leak condition ?

 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Pho Tek
Ranch Hand
Posts: 782
Chrome Python Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, well now it doesn't look like a leak. Well, not a big one, anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic