add shenadoahGCAnalyzer

This commit is contained in:
dada513 2022-06-07 16:49:41 +02:00
parent 01b90cf9f4
commit ea11dbba01
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E

View file

@ -122,7 +122,17 @@ const oomAnalyzer: analyzer = async (text) => {
if (text.includes('java.lang.OutOfMemoryError: Java heap space')) { if (text.includes('java.lang.OutOfMemoryError: Java heap space')) {
return [ return [
'Out of Memory', '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; return null;
@ -137,6 +147,7 @@ const analyzers: analyzer[] = [
macOSNSWindowAnalyzer, macOSNSWindowAnalyzer,
quiltFabricInternalsAnalyzer, quiltFabricInternalsAnalyzer,
oomAnalyzer, oomAnalyzer,
shenadoahGCAnalyzer,
]; ];
const providers: logProvider[] = [ const providers: logProvider[] = [