[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
[2]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2022.01.04 11:32:21 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2022.01.04 11:32:21 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2022.01.04 11:32:21 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
这种方法有效
[root@master1 sonar]# vi /etc/sysctl.conf
#加入内容
vm.max_map_count=262144
[root@master1 sonar]# sysctl -p
vm.max_map_count = 262144
改完之后sonarqube正常启动,并且已经生成了数据库表:
顺便也改下文件描述符的数量限制
编辑vim /etc/security/limits.conf,追加以下内容;
* soft nofile 65536
* hard nofile 65536
此文件修改后需要重新登录用户,才会生效
登录后使用
ulimit -S -n
ulimit -H -n
查看