class org.apache.cassandra.service.StartupChecks$8 implements org.apache.cassandra.service.StartupCheck
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.service.StartupChecks$8
super_class: java.lang.Object
{
private final long EXPECTED_MAX_MAP_COUNT;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: 1048575
private final java.lang.String MAX_MAP_COUNT_PATH;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
ConstantValue: "/proc/sys/vm/max_map_count"
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc 1048575
putfield org.apache.cassandra.service.StartupChecks$8.EXPECTED_MAX_MAP_COUNT:J
2: aload 0
ldc "/proc/sys/vm/max_map_count"
putfield org.apache.cassandra.service.StartupChecks$8.MAX_MAP_COUNT_PATH:Ljava/lang/String;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/StartupChecks$8;
private long getMaxMapCount();
descriptor: ()J
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=1
start local 0 0: ldc "/proc/sys/vm/max_map_count"
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 1
start local 1 1: aconst_null
astore 2
aconst_null
astore 3
2: aload 1
invokestatic java.nio.file.Files.newBufferedReader:(Ljava/nio/file/Path;)Ljava/io/BufferedReader;
astore 4
start local 4 3: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 5
start local 5 4: aload 5
ifnull 10
5: aload 5
invokestatic java.lang.Long.parseLong:(Ljava/lang/String;)J
6: aload 4
ifnull 7
aload 4
invokevirtual java.io.BufferedReader.close:()V
7: StackMap locals: org.apache.cassandra.service.StartupChecks$8 java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.BufferedReader java.lang.String
StackMap stack: long
lreturn
8: StackMap locals:
StackMap stack: java.lang.NumberFormatException
astore 6
start local 6 9: getstatic org.apache.cassandra.service.StartupChecks.logger:Lorg/slf4j/Logger;
ldc "Unable to parse {}."
aload 1
aload 6
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 6 end local 5 10: StackMap locals:
StackMap stack:
aload 4
ifnull 18
aload 4
invokevirtual java.io.BufferedReader.close:()V
goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 2
aload 4
ifnull 12
aload 4
invokevirtual java.io.BufferedReader.close:()V
end local 4 StackMap locals:
StackMap stack:
12: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 3
aload 2
ifnonnull 14
aload 3
astore 2
goto 15
StackMap locals:
StackMap stack:
14: aload 2
aload 3
if_acmpeq 15
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 2
athrow
16: StackMap locals: org.apache.cassandra.service.StartupChecks$8 java.nio.file.Path
StackMap stack: java.io.IOException
astore 2
start local 2 17: getstatic org.apache.cassandra.service.StartupChecks.logger:Lorg/slf4j/Logger;
ldc "IO exception while reading file {}."
aload 1
aload 2
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 2 18: StackMap locals:
StackMap stack:
ldc -1
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/service/StartupChecks$8;
1 19 1 path Ljava/nio/file/Path;
3 12 4 bufferedReader Ljava/io/BufferedReader;
4 10 5 data Ljava/lang/String;
9 10 6 e Ljava/lang/NumberFormatException;
17 18 2 e Ljava/io/IOException;
Exception table:
from to target type
5 6 8 Class java.lang.NumberFormatException
3 6 11 any
8 10 11 any
2 7 13 any
8 13 13 any
1 7 16 Class java.io.IOException
8 16 16 Class java.io.IOException
public void execute();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.FBUtilities.isLinux:Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDiskAccessMode:()Lorg/apache/cassandra/config/Config$DiskAccessMode;
getstatic org.apache.cassandra.config.Config$DiskAccessMode.standard:Lorg/apache/cassandra/config/Config$DiskAccessMode;
if_acmpne 5
3: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getIndexAccessMode:()Lorg/apache/cassandra/config/Config$DiskAccessMode;
getstatic org.apache.cassandra.config.Config$DiskAccessMode.standard:Lorg/apache/cassandra/config/Config$DiskAccessMode;
if_acmpne 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.service.StartupChecks$8.getMaxMapCount:()J
lstore 1
start local 1 6: lload 1
ldc 1048575
lcmp
ifge 10
7: getstatic org.apache.cassandra.service.StartupChecks.logger:Lorg/slf4j/Logger;
ldc "Maximum number of memory map areas per process (vm.max_map_count) {} is too low, recommended value: {}, you can change it with sysctl."
8: lload 1
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
ldc 1048575
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
9: invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
10: StackMap locals: long
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/service/StartupChecks$8;
6 11 1 maxMapCount J
}
SourceFile: "StartupChecks.java"
EnclosingMethod: org.apache.cassandra.service.StartupChecks
NestHost: org.apache.cassandra.service.StartupChecks
InnerClasses:
public final DiskAccessMode = org.apache.cassandra.config.Config$DiskAccessMode of org.apache.cassandra.config.Config
org.apache.cassandra.service.StartupChecks$8