From 371fd67ecf10674ef7fac21d37cdd930b74b278f Mon Sep 17 00:00:00 2001 From: orbiter Date: Wed, 12 Oct 2005 12:34:08 +0000 Subject: [PATCH] headless awt mode git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@922 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/yacy.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/yacy.java b/source/yacy.java index a4be97f72..a3585510c 100644 --- a/source/yacy.java +++ b/source/yacy.java @@ -905,9 +905,14 @@ public final class yacy { * @param args Given arguments from the command line. */ public static void main(String args[]) { + + // check memory amount System.gc(); long startupMemFree = Runtime.getRuntime().freeMemory(); // the amount of free memory in the Java Virtual Machine long startupMemTotal = Runtime.getRuntime().totalMemory(); // the total amount of memory in the Java virtual machine; may vary over time + + // go into headless awt mode + System.setProperty("java.awt.headless", "true"); String applicationRoot = System.getProperty("user.dir").replace('\\', '/'); //System.out.println("args.length=" + args.length);