- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
MySQL 优化技术的新手。请找到下面的 mysqltuner.pl
报告,并建议我应该更改 my.cnf
中的哪些变量以优化性能。
还有一个问题-
我无法在我的 my.cnf
中找到一些变量,例如 query_cache_size
、thread_cache_size
。我可以明确地将它们添加到 my.cnf
吗?
报告:
-------- General Statistics --------------------------------------------------
[--] Skipped version check for MySQLTuner script
[OK] Currently running supported MySQL version 5.5.8
[OK] Operating on 64-bit architecture
-------- Storage Engine Statistics -------------------------------------------
[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster
[--] Data in MyISAM tables: 10K (Tables: 10)
[--] Data in InnoDB tables: 176M (Tables: 60)
[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)
[!!] Total fragmented tables: 61
-------- Performance Metrics -------------------------------------------------
[--] Up for: 21h 15m 41s (237K q [3.099 qps], 42 conn, TX: 29M, RX: 52M)
[--] Reads / Writes: 68% / 32%
[--] Total buffers: 184.0M global + 1.6M per thread (151 max threads)
[OK] Maximum possible memory usage: 419.9M (20% of installed RAM)
[OK] Slow queries: 0% (0/237K)
[OK] Highest usage of available connections: 3% (5/151)
[OK] Key buffer size / total MyISAM indexes: 16.0M/2.3M
[OK] Key buffer hit rate: 100.0% (610K cached / 7 reads)
[!!] Query cache is disabled
[!!] Sorts requiring temporary tables: 38% (5 temp sorts / 13 sorts)
[OK] Temporary tables created on disk: 0% (6 on disk / 67K total)
[!!] Thread cache is disabled
[OK] Table cache hit rate: 83% (36 open / 43 opened)
[OK] Open file limit used: 0% (18/65K)
[OK] Table locks acquired immediately: 100% (257K immediate / 257K locks)
[!!] InnoDB data size / buffer pool: 176.3M/128.0M
-------- Recommendations -----------------------------------------------------
General recommendations:
Run OPTIMIZE TABLE to defragment tables for better performance
MySQL started within last 24 hours - recommendations may be inaccurate
Enable the slow query log to troubleshoot bad queries
Set thread_cache_size to 4 as a starting value
Variables to adjust:
query_cache_size (>= 8M)
sort_buffer_size (> 512K)
read_rnd_buffer_size (> 512K)
thread_cache_size (start at 4)
innodb_buffer_pool_size (>= 176M)
最佳答案
是的。您可以将变量添加到 my.cnf并且,根据 MySQL 的版本,动态更改它们 - 在 mysql 控制台中。
关于用于性能优化的 mysqltuner 报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7940411/
我是 stackoverflow 的新手,所以这是我的第一次尝试:) 我的 Mysql 数据库有问题。我遇到了一些性能问题,所以我决定使用 mysqltuner。结果是 [--] Up for: 7m
MySQLTuner 中的建议你好,我已经运行了 MySQLTuner - perl,我采取了 安全建议 Warning: Using unique option prefix pass instea
我没有 250 GB 的 RAM(超出了我们的预算),我目前有 70GB,使用一小时后就填满了 57GB(mysql 缓冲区)。 我主要不确定: 临时表缓冲区查询缓存修剪join_buffer 和 q
在两个数据库 MySQL 服务器上(来自两个不同的网站),我启动了一个 mysqltuner(我们在 Web 服务器上有一个超时,但我们现在真的不知道它来自哪里) 这是 mysqltuner 带来的优
我下载了 mysqltuner 以在我的 ubuntu 服务器上使用,但无论我尝试使用哪个用户登录,它都会响应我的凭据无效。我经常使用我的 root 密码以 root 身份登录,但它无法识别它。 my
MySQL 优化技术的新手。请找到下面的 mysqltuner.pl 报告,并建议我应该更改 my.cnf 中的哪些变量以优化性能。 还有一个问题- 我无法在我的 my.cnf 中找到一些变量,例如
下午好。该站点位于 VPS(10 GB RAM、2 个 CPU 内核、65 GB SSD)上。我想提高网站的速度。但是mysql的所有参数我都不明白。我写出了当前的 mysql 设置,以及 mysql
来自 mysqltuner 的报告,你能帮我吗?如何在稳定版上禁用 InnoDB ist 最后一个 Linux debian mysql 版本,并且连接在超过 30% 时中止? [!!] InnoDB
我们托管在分配有 16GB 内存和 12 个进程的 VPS 上,Intel(R) Xeon(R) CPU E5649 @ 2.53GHz 直到最近使用 mysqltuner.pl 时,它才显示以下内容
我正在尝试解决 Mysql 数据库上的性能问题,为此我正在使用 mysqltuner。我不明白的是为什么在 phpmyadmin 和 mysqltuner 中我提到了几个变量,而当我打开 my.cnf
我正在运行一个 Magento 网站,访问者/小时为 100 人,配备 64GB RAM 和 Intel Core i7 CPU。当我运行 mysqltuner 时,我收到消息“MySQL 的最大内存
我是新手,我刚刚安装了我的第一台服务器,我正在使用 MySQLTuner 来优化 MySQL 数据库,但我不知道根据 MySQLTuner 的输出调整什么是更好的方法。如何根据 MySQLTuner
我们正在尝试使用 mysqltuner 来了解我们的 WordPress 网站上某些问题背后可能存在的问题,但在运行它时几乎没有出现问题(主要是无法执行/返回代码:256)。 首先我们做了: wget
我最近遇到了系统与 MySQL(从技术上讲是 MariaDB)的连接耗尽的问题。 我已将 max_connections 设置为 250(从 151 增加)。但我对如何分配 RAM 感到困惑。该机器有
我正在使用具有 1.5GB RAM 和 3GB 突发 RAM 的 VPS。 VPS 托管多个 Joomla 网站。我想对 mysql 进行性能调整。为此,我在我的服务器上运行 mysqltuner,结
我在运行 OSX Snow Leopard 的 Mac 上使用 Zend Server CE 作为我的开发环境。我需要调整 MySQL,并且过去在 Linux 服务器上使用 mysqltuner.pl
mysqltuner.pl脚本给了我以下建议: query_cache_limit (> 1M, or use smaller result sets) MySQL状态输出显示: mysql> SHO
mysqltuner.pl脚本给了我以下建议: query_cache_limit (> 1M, or use smaller result sets) MySQL状态输出显示: mysql> SHO
我正在尝试优化正在运行的数据库,它位于具有 8GB RAM 的系统上,并且希望它能够使用大约 5GB-6GB 的内存。我已经运行了 mysqltuner.pl 脚本,并做了一些更改,但在对其进行过多操
我的 httpd 连接使用了太多内存,我想修复它。 MySQLTuner.pl是一个很棒的小脚本,可以为 MySQL 做类似的事情。 Apache 有这样的东西吗? 最佳答案 apachetuner.
我是一名优秀的程序员,十分优秀!