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

Reg:Memory Leak in my Application

jai jai

Joined: Mar 03, 2005
Posts: 5
I am facing a strange out of memory exception in my stand alone java application.

When i test the memory leakage with jprofiler i could find a object named marketupdateagent$2 is not garbage collected.

But when i try to see the heapwalker for that object i am getting a message like no objects of marketupdateagent$2 could be found in the heap snap shot.
But this object is gradually increasing and occupies huge memory.

Why it is not showing the allocations,references in the heapwalker?

If it is weekly refernced object means it will be garbage collected right???

Then i couldnt able to trace the problem. Can you guys help me to get out of the problem? It is very urgent for me.

Thank you,
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
I am going to take a SWAG (Scientific Wild Ass Guess) and say that instances of your inner class member of the "marketupdateagent" class are being attached as Listeners to some graphic component and never removed.

I agree. Here's the link:
subject: Reg:Memory Leak in my Application
It's not a secret anymore!