G
giangiammy
hi all,
I have a simple hello world program (at the end of the mail)
I start it, move around, hide and puton forground again,
and doing this I see a memory usage increments
I'm using j2sdk1.4.2_06 on a linux Fedora Core 3
I look at:
cat /proc/11383/status
and I see the field VmRSS incrementing.
By what is caused this memory leak?
where should I look to trace it?
thanks
giammy
import java.awt.*;
import java.awt.event.*;
public class HelloWorld extends Frame {
public static void main(String[] args) throws Exception {
final Frame frame = new HelloWorld();
frame.setSize(200, 200);
frame.setVisible(true);
}
public void paint(Graphics g) {
g.drawString("Hello World", 10, 100);
}
}
I have a simple hello world program (at the end of the mail)
I start it, move around, hide and puton forground again,
and doing this I see a memory usage increments
I'm using j2sdk1.4.2_06 on a linux Fedora Core 3
I look at:
cat /proc/11383/status
and I see the field VmRSS incrementing.
By what is caused this memory leak?
where should I look to trace it?
thanks
giammy
import java.awt.*;
import java.awt.event.*;
public class HelloWorld extends Frame {
public static void main(String[] args) throws Exception {
final Frame frame = new HelloWorld();
frame.setSize(200, 200);
frame.setVisible(true);
}
public void paint(Graphics g) {
g.drawString("Hello World", 10, 100);
}
}