From owner-freebsd-java Mon Nov 20 17:17:10 2000 Delivered-To: freebsd-java@freebsd.org Received: from heinz.jollem.com (c187104187.telekabel.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id E386337B479 for ; Mon, 20 Nov 2000 17:16:59 -0800 (PST) Received: (from ernst@localhost) by heinz.jollem.com (8.11.1/8.9.3) id eAL1EOc10342; Tue, 21 Nov 2000 02:14:24 +0100 (CET) (envelope-from ernst) Date: Tue, 21 Nov 2000 02:14:24 +0100 From: Ernst de Haan To: FreeBSD Java mailing list Cc: Yura Cangea , Alex Chudnovsky Subject: Free memory bug in Blackdown RC4 ? Message-ID: <20001121021424.A9971@c187104187.telekabel.chello.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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