centos7.3 安装sonar异常

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wxb880114/article/details/86668307
Java HotSpot(TM) Server VM warning: You have loaded library /wostore/sonar/sonarqube-6.7.6/bin/linux-x86-64/lib/libwrapper.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.

WARNING - Unable to load the Wrapper's native library 'libwrapper.so'.
          The file is located on the path at the following location but
          could not be loaded:
            /wostore/sonar/sonarqube-6.7.6/bin/linux-x86-64/./lib/libwrapper.so
          Please verify that the file is readable by the current user
          and that the file has not been corrupted in any way.
          One common cause of this problem is running a 32-bit version
          of the Wrapper with a 64-bit version of Java, or vica versa.
          This is a 32-bit JVM.
          Reported cause:
            /wostore/sonar/sonarqube-6.7.6/bin/linux-x86-64/lib/libwrapper.so: /wostore/sonar/sonarqube-6.7.6/bin/linux-x86-64/lib/libwrapper.so: wrong ELF class: ELFCLASS64 (Possible cause: architecture word width mismatch)
          System signals will not be handled correctly.

2019.01.27 18:24:06 INFO  app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /wostore/sonar/sonarqube-6.7.6/temp
2019.01.27 18:24:06 INFO  app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.01.27 18:24:06 INFO  app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] fr
java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMP and CONFIG_SECCOMP_FILTER compiled in
	
2019.01.26 15:14:21 WARN  es[][o.e.b.BootstrapChecks] max file descriptors [4096] for elasticsearch process is too low, increase to at least [65536]
2019.01.26 15:14:21 WARN  es[][o.e.b.BootstrapChecks] max number of threads [1024] for user [sonarUser] is too low, increase to at least [2048]
2019.01.26 15:14:21 WARN  es[][o.e.b.BootstrapChecks] max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

切换到root用户

执行命令:

sysctl -w vm.max_map_count=262144

查看结果:

sysctl -a|grep vm.max_map_count

显示:

vm.max_map_count = 262144

上述方法修改之后,如果重启虚拟机将失效,所以:

解决办法:

在   /etc/sysctl.conf文件最后添加一行

vm.max_map_count=262144

即可永久修改

猜你喜欢

转载自blog.csdn.net/wxb880114/article/details/86668307