This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Garbage collector: Out of memory (when running AWT/SWING code on arm-linux)
- From: "ffileppo" <ffileppo at libero dot it>
- To: "java" <java at gcc dot gnu dot org>
- Date: Tue, 3 Jun 2008 20:42:37 +0200
- Subject: Garbage collector: Out of memory (when running AWT/SWING code on arm-linux)
Hi guys,
I'm getting the following error:
GC Warning: Out of Memory! Returning NIL!
when I try to run any AWT/SWING code compiled with arm-linux-gcj on my embedded box (PXA270 - 128MB Ram). (Other code just runs fine)
For example this code:
import javax.swing.*;
public class SimpleFrame {
public static void main(String args[]) {
System.out.println("Check 1");
JFrame f = new JFrame("Simple Frame");
System.out.println("Check 2");
f.setSize(200,100);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
}
}
gives out of memory error after printing "Check 1".
Trying with some other code I can see that the first AWT/SWING call causes this error.
Any idea to fix / debug this problem?
I've read somewhere to look at stack trace and GC log but I don't know where to get these info.
I'm using gcc 4.3.0, compiled for arm-linux-gnueabi with GTK AWT peer support.
When I try to run AWT/SWING code on my embedded box I have like 110Mb of free ram (with Xorg and matchbox or xfce running).
Thank you,
Francesco