Article View: borland.public.jbuilder.java.api
Article #1471Re: Memory is not freed !
From: Chris Smith
Date: Fri, 14 Dec 2001 21:47
Date: Fri, 14 Dec 2001 21:47
21 lines
1903 bytes
1903 bytes
Laurent Souriau wrote ... > I am trying to solve the following problem : > > I wrote a Java application that receives 2000 messages in 5 different > windows. Each window display the messages in its own JTextarea. > > I look at memory used by javaw.exe with the Task manager. > > I see that my displaying method doesn't free 7 Mbytes of memory ! > However the garbage collector should free my variables . The garbage collector frees memory and places it back into a pool that is available to this process. It *may*, but won't necessarily, return that memory to the operating system when it's collected. Current virtual machines don't do that... after all, the memory will simply be swapped out if it remains idle for long; why go to the expense of rearranging things so as to release virtual memory to the OS. If we were talking about RAM, this would be a problem. Chris Smith
Technical Details
Message-ID:
<MPG.1684216856c3a46c989b86@news.altopia.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!news.alt.net!usenetReferences:
<9vd6nk$4e0$1@s1.read.news.oleane.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,187c425c309f6a3 X-Google-Attributes: gid1089d0,public X-Google-Thread: 10a146,187c425c309f6a3 X-Google-Attributes: gid10a146,public X-Google-Thread: 113ae9,187c425c309f6a3 X-Google-Attributes: gid113ae9,public X-Google-Thread: f74b3,187c425c309f6a3 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-12-14 13:49:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!sn-xit-01!supernews.com!news.alt.net!usenet From: Chris Smith <cdsmith@twu.net> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer Subject: Re: Memory is not freed ! Date: Fri, 14 Dec 2001 14:47:41 -0700 Organization: Altopia Corp. - Usenet Access - http://www.altopia.com Lines: 21 Message-ID: <MPG.1684216856c3a46c989b86@news.altopia.com> References: <9vd6nk$4e0$1@s1.read.news.oleane.net> X-Newsreader: MicroPlanet Gravity v2.30