I posted to the group recently with a very similar problem to Luigi's problem -
I think there is a memory leak in StringBuffer somewhere: the following code
slowly eats up memory (it doesn't on a Sun).
(running on JDK1.2-pre1).
import java.util.*;
public class SBTest {
public SBTest() {
int i = 0;
while(true) {
System.out.println(i + " ");
i++;
System.out.flush();
System.gc();
}
}
public static void main(String[] args) {
SBTest m = new SBTest();
}
}
Crispin
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
- java.lang.OutOfMemoryError Luigi Giuri
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Luigi Giuri
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Matthias Carlsson
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Jan-Henrik Haukeland
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Crispin Miller
- Re: java.lang.OutOfMemoryError Nick Lawson
- Re: java.lang.OutOfMemoryError Larry Gates
- Re: java.lang.OutOfMemoryError Gregory Steuck
- Re: java.lang.OutOfMemoryError Nathan Ehresman
- Re: java.lang.OutOfMemoryError Dallas Hockley
