From 73d3519fcab2d4642bce4e68574857fa831944cf Mon Sep 17 00:00:00 2001 From: Dmck2b Date: Tue, 28 Jan 2014 17:51:26 +0000 Subject: [PATCH] Add more information about changing PermGen size --- .../0081-Warn-if-PermGen-may-be-insufficient.patch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CraftBukkit-Patches/0081-Warn-if-PermGen-may-be-insufficient.patch b/CraftBukkit-Patches/0081-Warn-if-PermGen-may-be-insufficient.patch index 49dfc04bc..bd20526ff 100644 --- a/CraftBukkit-Patches/0081-Warn-if-PermGen-may-be-insufficient.patch +++ b/CraftBukkit-Patches/0081-Warn-if-PermGen-may-be-insufficient.patch @@ -1,14 +1,14 @@ -From 79b1556a3f83cc53c8ef6260f5897495fa595225 Mon Sep 17 00:00:00 2001 +From 8419a2d0a468dd909b42f8d81b415d2945765827 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Dec 2013 14:07:41 +1100 Subject: [PATCH] Warn if PermGen may be insufficient diff --git a/src/main/java/org/bukkit/craftbukkit/Main.java b/src/main/java/org/bukkit/craftbukkit/Main.java -index 07c26f1..7e7b1ec 100644 +index 07c26f1..246e641 100644 --- a/src/main/java/org/bukkit/craftbukkit/Main.java +++ b/src/main/java/org/bukkit/craftbukkit/Main.java -@@ -149,6 +149,21 @@ public class Main { +@@ -149,6 +149,22 @@ public class Main { useConsole = false; } @@ -25,6 +25,7 @@ index 07c26f1..7e7b1ec 100644 + if ( maxPermGen < (128<<10) ) // 128mb + { + System.out.println( "Warning, your max perm gen size is not set or less than 128mb. It is recommended you restart Java with the following argument: -XX:MaxPermSize=128M" ); ++ System.out.println( "Please see http://www.spigotmc.org/wiki/changing-permgen-size/ for more details and more in-depth instructions." ); + } + // Spigot End System.out.println("Loading libraries, please wait...");