File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Memory Leak Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Memory Leak" Watch "Memory Leak" New topic

Memory Leak

Arka Sharma
Ranch Hand

Joined: Jun 15, 2011
Posts: 103


I have an enterprise project where I have to detect memory leaks.I have deployed the application in JBoss and monitored JBoss with jConsole.In the memory graph I see a permanent gradually increase of almost 300 MB.The application ran for 10 hours.No I have to figure out which are the objects have not been dereferenced.I have tried to profile the application with VisualVm by configuring the VM but it crashed.I'm not using any commercial profiler like JProfiler.
Is there any way to detect which objects are actually there in the memory and have not being dereferenced.

Paul Clapham

Joined: Oct 14, 2005
Posts: 19973

I used JProfiler several years ago and if I remember correctly, it did exactly that. I expect it still does.
I agree. Here's the link:
subject: Memory Leak
It's not a secret anymore!