gpt4 book ai didi

MySQL进程占用CPU,这个进程是做什么的?

转载 作者:行者123 更新时间:2023-11-29 21:49:32 26 4
gpt4 key购买 nike

/usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/lib/mysql/server188.serveer.com.err --open-files-limit=50000 --pid-file=/var/lib/mysql/server188.server.com.pid

这个进程占用了大量的CPU,30-35%,它有什么作用以及如何保持较低的使用率?服务器处于空闲状态,没有运行任何脚本/sql。

这些是设置

default-storage-engine=MyISAM
innodb_file_per_table=1
max_allowed_packet=107374182
open_files_limit=50000
innodb_buffer_pool_size=128GB
max_connections=500
key_buffer_size=64G
query_cache_size = 128MB
query_cache_limit = 128MB

服务器:

256GB 内存四核 12 处理器

最佳答案

是的,没错。通过 mysql SHOW PROCESSLIST 命令检查服务器上哪些数据库使用高 CPU,并尝试使用 mysqltuner 脚本优化 MySQL 服务。

关于MySQL进程占用CPU,这个进程是做什么的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33784732/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com