🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8301

Re: Memory

#8301
From: Valentino Kyriakides
Date: Thu, 29 Mar 2001 09:55
28 lines
1960 bytes
"Ronald Wildenberg" <ronald@tryllian.com> schrieb im Newsbeitrag
news:3AC2F0F9.4D868EFB@tryllian.com...
> Hi,
>
> Thanks for the answer. I did not know the default initial heap
> size was 2MB. I can not run my program from within JB so I
> can not use your Memory Monitor (I guess).
>
> I print the totalMemory() and freeMemory() every minute and
> totalMemory() *does* grow. It seems to me that totalMemory() returns
> not the total amount of available memory (as I would have expected)
> but the total amount of memory currently reserved for new objects.
> This amount can grow to the maximum specified size of 160MB.

That was exactly what I meant, totalMemory() only returns a momentary
snapshot of the total amount of allocated memory, but not the max setup
memory pool!

> I do not find the JavaDoc comment on totalMemory() clear on this.
> To me it looks as if the method should return the maximum heap
> size, which it does not.
>

Yes, I fully agree. - However, things always get clearer whith some own
tryouts, like you did ;-).


Greetings Valentino
Technical Details
Message-ID: <3ac3072c_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!194.64.62.36
References: <3AC1CFA5.E12BF796@tryllian.com> <3ac230e7$1_2@dnews> <3AC2F0F9.4D868EFB@tryllian.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,9849fe78e24e781
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-29 02:18:04 PST
From: "Valentino Kyriakides" <vkyr@nospamlavielle.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3AC1CFA5.E12BF796@tryllian.com> <3ac230e7$1_2@dnews> <3AC2F0F9.4D868EFB@tryllian.com>
Subject: Re: Memory
Date: Thu, 29 Mar 2001 11:55:10 +0200
Lines: 30
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
NNTP-Posting-Host: 194.64.62.36
Message-ID: <3ac3072c_1@dnews>
X-Trace: 29 Mar 2001 01:58:04 -0800, 194.64.62.36
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!logbridge.uoregon.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!194.64.62.36