From ea11dbba015395902b491d465e92dc1566fbfc8a Mon Sep 17 00:00:00 2001 From: dada513 Date: Tue, 7 Jun 2022 16:49:41 +0200 Subject: [PATCH] add shenadoahGCAnalyzer --- src/logs.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/logs.ts b/src/logs.ts index 35437f8..0956f86 100644 --- a/src/logs.ts +++ b/src/logs.ts @@ -122,7 +122,17 @@ const oomAnalyzer: analyzer = async (text) => { if (text.includes('java.lang.OutOfMemoryError: Java heap space')) { return [ 'Out of Memory', - 'Allocate more RAM to your instance to prevent this crash.', + 'Allocating more RAM to your instance could help prevent this crash.', + ]; + } + return null; +}; + +const shenadoahGCAnalyzer: analyzer = async (text) => { + if (text.includes("Unrecognized VM option 'UseShenandoahGC'")) { + return [ + "Java 8 doesn't support ShenandoahGC", + 'Remove `UseShenandoahGC` from your Java Arguments', ]; } return null; @@ -137,6 +147,7 @@ const analyzers: analyzer[] = [ macOSNSWindowAnalyzer, quiltFabricInternalsAnalyzer, oomAnalyzer, + shenadoahGCAnalyzer, ]; const providers: logProvider[] = [