JVM Languages
jqa220.txt
Associated article: Java Q&A
Tags: JVM Languages
Published source code accompanying the article by Ethan Henry and Ed Lycklama in which they show what you can do when Java exhibits classic memory leak behavior--unbounded memory growth leading to poor performance and eventually crashing.
Java Q&A
by Ethan Henry and Ed Lycklama
Example 1:
Public void useless() {
MyObject m1 = new MyObject();
MyObject m2 = new MyObject();
m1.ref = m2;
global.ref = m2;
return;
}
Example 2:
public class PrintService {
static PrintService singleton;
Printable target;
public PrintService ...


