当前位置:网站首页>How mysql/mariadb generates core files
How mysql/mariadb generates core files
2022-07-22 19:45:00 【Yabingshi】
Be careful : open core There are two risks after configuration
1、 Disk space may be full
---- Because it will mysql server All memory information of is exported to core In file , Include buffer pool The content in , There may be dozens of hundreds G size
2、mysql appear crash After starting, the speed will be slow
---- Because you need to export a large amount of data to core In file , Therefore, the startup speed will be much slower .
# Generate core File steps
1、 open linux Of core File configuration
ulimit -c unlimited
2、 Modify the configuration file , add to core_file To configure ( remarks : Configure in [mysqld] below ), And restart the database
3、 To configure suid_dumpable( mysql Usually with suid Mode start )
echo 2 >/proc/sys/fs/suid_dumpable # Before changing, the parameter value is 0
4、 Set up core File storage directory and set full control permissions
mkdir -p /data/core && chmod 777 /data/core && echo "/data/core/core" > /proc/sys/kernel/core_pattern # Before the reform /proc/sys/kernel/core_pattern The value is core
# simulation mysql Of crash scene
kill -SEGV Database process number
# Use gdb see core file
cd /data/core
gdb mysqld core.8983
-- This article refers to mysql core Correct opening posture of files - JavaShuo
边栏推荐
- 自然语言处理NLP文本分类顶会论文阅读笔记(二)
- 三层交换机/路由器OSPF配置详解【华为eNSP实验】
- DP4361国产六通道立体声D/A音频转换器芯片替代CS4361
- Explain the adapter technology in NLP from simple to deep
- 派生类成员的访问
- [Standard Specification] what is the concept and definition of low code? Is no code a low code?
- How Oracle escapes single quotation marks
- DNSmasq 安装与配置
- mariadb spider分片引擎初体验
- maxscale的causal_reads参数
猜你喜欢
ZABBIX realizes nail monitoring alarm
世纪佳缘“大地震”
It is found that the MariaDB database is 12 hours late, and the xxljob scheduled task scheduling is abnormal
warning: [mariadbmon] The current master server ‘srv-cls01-02‘ is no longer valid because it is in r
派生类的构造函数和析构函数
How can ZABBIX customize MySQL monitoring items and trigger alarms
Wanxing PDF expert v8.3.8.1253 Professional Edition
Dp4361 domestic six channel stereo d/a audio converter chip replaces cs4361
How does ZABBIX create a template that only monitors the status of a port
Trees and binary trees: the concept of trees
随机推荐
[learn C and fly] Chapter 3 branch structure (exercise 3.1 simple guessing game)
Friend functions and friend classes
Operator overloading
MySQL 查看表结构最后变更时间
友元函数和友元类
向量vector
Neo4j - Cypher 语法示例
直接修改/etc/crontab 文件内容,定时任务不生效
ZABBIX realizes nail monitoring alarm
mariadb审计插件
Jackson 解析 JSON 详细教程
重复调用、消息,幂等性方案全整理
Doctoral application | Professor Ni Zhuoxian of the University of Hong Kong enrolls doctoral students with the full award in the direction of Internet of things and machine learning
zabbix怎样自定义mysql监控项并触发告警
Vector
YII2 composer 报错解决 requires bower-asset 问题
Pytest interface automated testing framework | the difference between unittest and pytest
派生類的構造函數和析構函數
管理的艺术-通过领导力驱动软件研发效能提升
Install MariaDB 10.5.7 (tar package installation)