Article View: borland.public.jbuilder.java.api
Article #2591Re: Why Java Program eats Memory?!
From: Captain Claw
Date: Tue, 19 Sep 2000 00:00
Date: Tue, 19 Sep 2000 00:00
78 lines
3164 bytes
3164 bytes
This is a multi-part message in MIME format. --------------8FAC6A5515E8820216B14D23 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Is there any other way to initate garbage collection instantly or at a sheduled time ? Rich Wilkman wrote: > System.gc() doesn't call the garbage collector. It's a request that may > be, at some point in the near to distant future be considered for > possibly convincing the garbage collector to fire if it wants to. > > -Rich > > Captain Claw wrote: > > > Try giving System.gc() ocassionally to invoke the garbage collector > > > > > > Rich Wilkman wrote: > > > >> Xuegang Ban: > >> > >> Is it being 'eaten' or is it just null and waiting for the garbage > >> collector to > >> come get it? Just using the system tools in NT won't tell you much > >> that you > >> need to diagnose this. To me, it sounds like each loop does 5M > >> worth of work > >> with no object re-use. If the garbage collector can fire before you > >> run out of > >> memory, you'll get back the dead references. Your NT monitors, > >> however, won't > >> show you that; it'll just show you the total heap size. > >> > >> -Rich > >> > >> banxuegang wrote: > >> > >> > Hi, > >> > I used Thread class in my Java Application. There is a loop in it. > >> But, I > >> > found that every time this loop execuates, the system memory is > >> eaten by 5 > >> > MB. What's the problem? I think there are should not Memory > >> problems in Java > >> > Programming. But.... > >> > Thanks. > >> > > >> > -- > >> > Xuegang Ban > >> > Civil&Enviromental Engineering Department, > >> > Univ. of Wisconsin-Madison > >> > Email: ban@cae.wisc.edu > >> > Phone: 608-262-3967(o) > >> > 608-260-9123(h) > > --------------8FAC6A5515E8820216B14D23 Content-Type: text/x-vcard; charset=us-ascii; name="captainclawfree.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Captain Claw Content-Disposition: attachment; filename="captainclawfree.vcf" begin:vcard n:Claw;Captain x-mozilla-html:TRUE adr:;;;;;; version:2.1 email;internet:captainclawfree@yahoo.com note;quoted-printable:Please do not Spam=0D=0A=0D=0AThe Views I express are entirely based on my opinion =0D=0Aand Any other person or organisation holds resposibilty for them.=0D=0A=0D=0Acaptainclawfree=0D=0A=0D=0AFeel free to contact me through Yahoo! Instant Messenger end:vcard --------------8FAC6A5515E8820216B14D23--
Technical Details
Message-ID:
<39C70681.970D85F9@yahoo.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39c28555$1_2@dnews> <39C2AAC4.67612EAF@formlessvoid.com> <39C3031B.DA79268B@yahoo.com> <39C649F1.60C089EB@formlessvoid.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,80c63c7225823056 X-Google-Attributes: gid1089d0,public From: Captain Claw <captainclawfree@yahoo.com> Subject: Re: Why Java Program eats Memory?! Date: 2000/09/19 Message-ID: <39C70681.970D85F9@yahoo.com> X-Deja-AN: 673396893 References: <39c28555$1_2@dnews> <39C2AAC4.67612EAF@formlessvoid.com> <39C3031B.DA79268B@yahoo.com> <39C649F1.60C089EB@formlessvoid.com> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------8FAC6A5515E8820216B14D23" Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api