Memory Leak Applications

Hi all

I have an app that is running out of memory, now the heap size is currently set to 2gig, which is pure overkill (Should be max of 256), and it still manages to create enough threads/connections to bomb the application out.

I was wondering if anyone knew of an application that can take a basic java file (or even a jar or class) and step on through it, making sure all connections that are opened are closed (Databases, LDAP, closing Threads etc)

I have the Rational Suite, and trying using Purify, but because of the nature of the application I was unable to run it against Purify, hence why I was hoping to use a Java file, or Class...

Any ideas?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Forget about it, 2G is insane.
You better review your source or add some reporting code in it.
Usually you'll see the 'unreturned' objects this way.

directxBOBAuthor Commented:
Problem is I dont have total control over it, only a small portion of this code is mine. The rest I cant really touch, not even to put in system.outs
In that case, if the problem is not in your code, give up and run!

Try JProbe;

Free eval should provide you with enough info to isolate the leak.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.