Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Nov 2000 02:14:24 +0100
From:      Ernst de Haan <ernst@jollem.com>
To:        FreeBSD Java mailing list <freebsd-java@freebsd.org>
Cc:        Yura Cangea <yura@notepad.com>, Alex Chudnovsky <chud73@yahoo.com>
Subject:   Free memory bug in Blackdown RC4 ?
Message-ID:  <20001121021424.A9971@c187104187.telekabel.chello.nl>

next in thread | raw e-mail | index | archive | help
Hi,

It seems the Blackdown Linux JDK either does not report free memory correctly,
or it uses some sort of dynamic memory allocation (which i find an unlikely
case).

Here's some output from my program:

   INFO    Total memory available is 1023 KB.
   INFO    Memory used by JVM is 435 KB.
   WARNING Unable to determine memory used by libraries.  Free memory at start was: 602584 bytes, after startup it was: 981448 bytes.

I called Runtime.getRuntime().freeMemory() before and after the startup of my
program. My Java version (from the linux-jdk port):

   java version "1.2.2"
   Classic VM (build Linux_JDK_1.2.2_RC4, green threads, nojit)

Did anyone encounter anything similar ? Is this a bug in the linuxulator ?

When I run this program using our very own JDK 1.2.2b10, I get what I
expect:

   INFO    Total memory available is 1023 KB.
   INFO    Memory used by JVM is 374 KB.
   INFO    Memory used by libraries is 86 KB.

The results for the Sun Linux JDK 1.3.0_01:

   INFO    Total memory available is 1023 KB.
   INFO    Memory used by JVM is 455 KB.
   INFO    Memory used by libraries is 291 KB.

The results for the FreeBSD JDK 1.2.2b9:

   INFO    Total memory available is 1023 KB.
   INFO    Memory used by JVM is 373 KB.
   INFO    Memory used by libraries is 261 KB.


Ernst


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-java" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001121021424.A9971>