[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Memory leak in 1.5.0 JVM
- To: "Mika Nystrom" <mika_(_at_)_async_(_dot_)_caltech_(_dot_)_edu>, <freebsd-java_(_at_)_freebsd_(_dot_)_org>
- Subject: RE: Memory leak in 1.5.0 JVM
- From: "Samuel R. Baskinger" <sbaskinger_(_at_)_lumeta_(_dot_)_com>
- Date: Thu, 21 Feb 2008 22:02:09 -0500
- Cc: mika_(_at_)_camembert_(_dot_)_async_(_dot_)_caltech_(_dot_)_edu
- Thread-index: Ach0/Q/uCkqm6ZqtR02oxNeVd8ZnjAAAkCnl
- Thread-topic: Memory leak in 1.5.0 JVM
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_(_at_)_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_(_at_)_bob ~]$
Sam
-----Original Message-----
From: owner-freebsd-java_(_at_)_freebsd_(_dot_)_org on behalf of Mika Nystrom
Sent: Thu 2/21/2008 9:07 PM
To: freebsd-java_(_at_)_freebsd_(_dot_)_org
Cc: mika_(_at_)_camembert_(_dot_)_async_(_dot_)_caltech_(_dot_)_edu
Subject: Memory leak in 1.5.0 JVM
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_(_at_)_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()
{
}
}
public static void main (String[] args)
{
for(;;) {
(new MyThread()).start();
}
}
}
Best regards,
Mika Nystrom
mika_(_at_)_alum_(_dot_)_mit_(_dot_)_edu
_______________________________________________
freebsd-java_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe_(_at_)_freebsd_(_dot_)_org"
_______________________________________________
freebsd-java_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-java
To unsubscribe, send any mail to "freebsd-java-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org