zoukankan      html  css  js  c++  java
  • zabbix 数据库问题

     Too many connections
     15155:20190823:052844.247 Cannot connect to the database. Exiting...
     15220:20190823:052844.249 server #260 started [trapper #146]
     15158:20190823:052844.249 Cannot connect to the database. Exiting...
     15225:20190823:052844.251 server #264 started [trapper #150]
     15224:20190823:052844.251 server #263 started [trapper #149]
     15227:20190823:052844.254 server #266 started [trapper #152]
     15206:20190823:052844.254 server #249 started [trapper #135]
     15225:20190823:052844.256 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15225:20190823:052844.256 Cannot connect to the database. Exiting...
     15170:20190823:052844.257 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15170:20190823:052844.257 Cannot connect to the database. Exiting...
     15227:20190823:052844.258 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15227:20190823:052844.258 Cannot connect to the database. Exiting...
     15214:20190823:052844.258 server #255 started [trapper #141]
     15218:20190823:052844.259 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15218:20190823:052844.259 Cannot connect to the database. Exiting...
     15207:20190823:052844.261 server #250 started [trapper #136]
     15224:20190823:052844.261 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15224:20190823:052844.261 Cannot connect to the database. Exiting...
     15206:20190823:052844.262 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15206:20190823:052844.262 Cannot connect to the database. Exiting...
     15220:20190823:052844.263 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15220:20190823:052844.263 Cannot connect to the database. Exiting...
     15212:20190823:052844.263 server #253 started [trapper #139]
     15207:20190823:052844.265 [Z3001] connection to database 'zabbix' failed: [1040] Too many connections
     15207:20190823:052844.265 Cannot connect to the database. Exiting...
     14744:20190823:052844.266 One child process died (PID:14984,exitcode/signal:1). Exiting ...
     15244:20190823:052844.312 server #267 started [trapper #153]
     14744:20190823:052844.316 syncing trend data...
     14744:20190823:052844.316 syncing trend data done
     14744:20190823:052844.316 Zabbix Server stopped. Zabbix 4.2.5 (revision 2c0e4d1d39).
    

    处理方法:修改mariadb最大连接数

    配置/etc/my.cnf
    [mysqld]下新添加一行如下参数:
    max_connections=300

    vi /usr/lib/systemd/system/mariadb.service
    取消[Service]前的#号,
    [Service]新添加两行如下参数:
    LimitNOFILE=10000
    LimitNPROC=10000

    systemctl --system daemon-reload
    systemctl restart mariadb.service

  • 相关阅读:
    docker中centos7安装ssh服务
    redis加入systemctl服务
    elasticsearch设置执行脚本并添加开机启动 (转)
    CentOS7使用firewalld打开关闭防火墙与端口
    腾讯地图JSAPI开发demo 定位,查询
    C# 开发AliYun(阿里云) 小蜜调用接口代码
    VSCode 开发Core教程
    Rabbit原理理解
    Exceptionless 本地部署
    Visual Studio 2019 自带混淆工具DotFuscator不需要去网络下载
  • 原文地址:https://www.cnblogs.com/yunweiweb/p/11401622.html
Copyright © 2011-2022 走看看