Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / April 2004

Tip: Looking for answers? Try searching our database.

Java memory leak

Thread view: 
Howard Rubin - change nospam to nyx - 27 Apr 2004 16:16 GMT
I'm working on resolving the final few issues on an applet that
was written by someone else (that'd be new) and one that's been
very difficult so far is that on certain VMs (sun, mac 1.4) its
memory usage continuously increases, while on others (M$, mac 1.3)
no memory leaks at all.  I've searched on google and also tried
commenting out areas of code, but haven't really gotten anywhere
with either approach.

Since the leak occurs only on some VMs and not on others, it seems
unlikely that the problem is in the applet, but it's a little hard
to believe that two independent VMs (sun & mac 1.4) would have the
same problem.

Anyone have any ideas how I might track this down?

Thanks,
Howard Rubin
Roedy Green - 27 Apr 2004 17:58 GMT
>Since the leak occurs only on some VMs and not on others, it seems
>unlikely that the problem is in the applet, but it's a little hard
>to believe that two independent VMs (sun & mac 1.4) would have the
>same problem.

see http://mindprod.com/jgloss/packratting.html
http://mindprod.com/jgloss/profiler.html

I would check that dispose is used any time you close a frame you
don't plan to reopen soon.

see http://mindprod.com/jgloss/frame.html
http://mindprod.com/jgloss/jframe.html

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Stewart Gordon - 28 Apr 2004 16:40 GMT
<snip>
> see http://mindprod.com/jgloss/packratting.html
> http://mindprod.com/jgloss/profiler.html
>
> I would check that dispose is used any time you close a frame you
> don't plan to reopen soon.
<snip>

FWIG there are actually true memory leaks when a frame has been closed
and all references indeed removed, but through having not been disposed
becoming an unreachable object doing nothing but taking up both memory
and native resources.

Stewart.

Signature

My e-mail is valid but not my primary mailbox, aside from its being the
unfortunate victim of intensive mail-bombing at the moment.  Please keep
replies on the 'group where everyone may benefit.

Howard Rubin - change nospam to nyx - 29 Apr 2004 20:44 GMT
I just got off the phone with Compuware, talking to them about
their boundschecker like product for java called Devpartner Java
http://www.compuware.com/products/devpartner/java.htm

Has anyone used this product?  What were your impressions?
Compuware says it'll find the leak whether it's in the VM or
the applet.  Does that sound right?
It seems kind of expensive.  Anybody have a transferable license available?

Thanks,
Howard Rubin


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.