From owner-freebsd-java@FreeBSD.ORG Fri Feb 22 03:16:46 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7EC2F16A400 for ; Fri, 22 Feb 2008 03:16:46 +0000 (UTC) (envelope-from sbaskinger@lumeta.com) Received: from MAIL.corp.lumeta.com (hercules.lumeta.com [65.246.245.23]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF4D13C458 for ; Fri, 22 Feb 2008 03:16:45 +0000 (UTC) (envelope-from sbaskinger@lumeta.com) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Thu, 21 Feb 2008 22:02:09 -0500 Message-ID: <78ED28FACE63744386D68D8A9D1CF5D449F3@MAIL.corp.lumeta.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Memory leak in 1.5.0 JVM Thread-Index: Ach0/Q/uCkqm6ZqtR02oxNeVd8ZnjAAAkCnl References: <200802220207.m1M27I9r080073@camembert.async.caltech.edu> From: "Samuel R. Baskinger" To: "Mika Nystrom" , Cc: mika@camembert.async.caltech.edu Subject: RE: Memory leak in 1.5.0 JVM X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 03:16:46 -0000 Do you get the same results if you put a System.gc() after your thread = spawn? Perhaps you are just out-running the garbage collector. :) I tried this on the diablog-jdk 1.5 on amd64 bsd and it runs quite = nicely unmodified. [sam@bob ~]$ java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build = diablo-1.5.0-b01) Java HotSpot(TM) 64-Bit Server VM (build diablo-1.5.0_07-b01, mixed = mode) [sam@bob ~]$=20 Sam -----Original Message----- From: owner-freebsd-java@freebsd.org on behalf of Mika Nystrom Sent: Thu 2/21/2008 9:07 PM To: freebsd-java@freebsd.org Cc: mika@camembert.async.caltech.edu Subject: Memory leak in 1.5.0 JVM =20 Hello there freebsd-java, I am running a binary downloaded 1.5.0 JVM on a FreeBSD 5.5 system: (167)rover:~/levinc/memleak>java -version java version "1.5.0" Java(TM) 2 Runtime Environment, Standard Edition (build = diablo-1.5.0-b01) Java HotSpot(TM) Client VM (build diablo-1.5.0_07-b01, mixed mode) (168)rover:~/levinc/memleak>uname -a FreeBSD rover 5.5-RELEASE FreeBSD 5.5-RELEASE #4: Sat Nov 17 12:13:24 = PST 2007 mika@rover:/usr/src/sys/i386/compile/ROVER i386 I have found the following program to leak memory on FreeBSD, but not on = Windows with same Java 1.6.0, nor on Debian with gij 1.4.2: class Leakq { private static class MyThread extends Thread { public void run()=20 { } } public static void main (String[] args) { for(;;) { (new MyThread()).start(); } } } Best regards, Mika Nystrom mika@alum.mit.edu _______________________________________________ freebsd-java@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-java To unsubscribe, send any mail to "freebsd-java-unsubscribe@freebsd.org"