Article View: borland.public.jbuilder.java.api
Article #1470Re: Memory is not freed !
From: Paul Lutus
Date: Fri, 14 Dec 2001 19:07
Date: Fri, 14 Dec 2001 19:07
30 lines
2828 bytes
2828 bytes
"Laurent Souriau" <lsouriau@club-internet.fr> wrote in message news:9vd6nk$4e0$1@s1.read.news.oleane.net... > Hi, > > 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 . 1. Do not cross-post. Choose one newsgroup. Make one post. 2. There's not enough code to know the cause, not that I recommend posting a long code block. Just look for existing references to allocations, references that are not themselves set to null or that do not go out of scope. Memory allocations are retained like this because references to them still exist in some form in the program. There is a slim chance that a JVM bug is the cause, but this is much less likely than a program error. -- Paul Lutus www.arachnoid.com
Technical Details
Message-ID:
<F5sS7.257821$8q.24139940@bin2.nnrp.aus1.giganews.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.voicenet.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin2.nnrp.aus1.giganews.com.POSTED!not-for-mailReferences:
<9vd6nk$4e0$1@s1.read.news.oleane.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,187c425c309f6a3 X-Google-Attributes: gid10a146,public X-Google-Thread: f74b3,187c425c309f6a3 X-Google-Attributes: gidf74b3,public X-Google-Thread: 113ae9,187c425c309f6a3 X-Google-Attributes: gid113ae9,public X-Google-Thread: 1089d0,187c425c309f6a3 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-12-14 11:07:33 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news.voicenet.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin2.nnrp.aus1.giganews.com.POSTED!not-for-mail From: "Paul Lutus" <nospam@nosite.zzz> Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language,comp.lang.java.help,comp.lang.java.programmer References: <9vd6nk$4e0$1@s1.read.news.oleane.net> Subject: Re: Memory is not freed ! Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: <F5sS7.257821$8q.24139940@bin2.nnrp.aus1.giganews.com> NNTP-Posting-Date: Fri, 14 Dec 2001 13:07:17 CST Organization: Giganews.Com - Premium News Outsourcing X-Trace: sv3-3REqKXiUTg+cj5TAUODUTh6Sh79EYcBUdcQjEGSZ2ShHqV5KMvI/SIr6XElb6k4acjW9QuZECXLBHVG!6K5hIm9rJg1URWSpDjzS2e8CMC2BHVubqqglVt9xf1itx6VQwT5x1Jktk7lLcEQWtGrhr86ZEHTO!Wkmf9Z6chS8IyWWHV9I5 X-Complaints-To: abuse@GigaNews.Com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly Date: Fri, 14 Dec 2001 19:07:17 GMT