MySQL性能计算_MySQL

php中文网
发布: 2016-06-01 13:32:41
原创
1246人浏览过

bitsCN.com

mysql性能计算

 

开源电子商务系统(网店) iWebShop
开源电子商务系统(网店) iWebShop

iWebShop基于iWebSI框架开发,在获得iWebSI技术平台库支持的条件下,iWebShop可以轻松满足用户量级百万至千万级的大型电子商务网站的性能要求。站点的集群与分布式技术(分布式计算与存储/高可用性/负载均衡)被屏蔽在SI 平台之内,基于iWebShop并且按照SI平台库扩展规范开发的新增功能模块,也将同时获得这种超级计算与处理的能力。作为开源的LAMP电子商务系统,iWebShop

开源电子商务系统(网店) iWebShop 0
查看详情 开源电子商务系统(网店) iWebShop

##################################################################################

 

QPS(Queries Per Second):

 

mysql> show /*!50000 global */ status like 'Questions';

 

mysql> show /*!50000 global */ status like 'Queries';

 

 

QPS = Questions(or Queries) / Seconds

 

##################################################################################

 

TPS(Transactions Per Second):

 

 

mysql> show status like 'Com_commit';

 

mysql> show status like 'Com_rollback';

 

 

#分布式事务相关应加上下面2个变量值

 

mysql> show status like 'Com_xa_commit';

 

mysql> show status like 'Com_xa_rollback';

 

 

TPS = ( Com_commit + Com_rollback ) / Seconds

 

 

 

##################################################################################

 

 

Key Buffer(MyISAM表索引Cache):

 

 

mysql> show status like 'Key_reads';

 

mysql> show status like 'Key_read_requests';

 

mysql> show status like 'Key_writes';

 

mysql> show status like 'Key_write_requests';

 

 

Key Buffer Read 命中率 = ( 1 - Key_reads / Key_read_requests ) * 100%

 

Key Buffer Write 命中率 = ( 1 - Key_writes / Key_write_requests ) * 100%

 

 

##################################################################################

 

 

Innodb Buffer Pool:

 

 

mysql> show status like 'Innodb_buffer_pool_reads';

 

mysql> show status like 'Innodb_buffer_pool_read_requests';

 

 

 

Innodb Buffer Pool Read 命中率 = ( 1 - Innodb_buffer_pool_reads/Innodb_buffer_pool_read_requests )  * 100%

 

 

mysql> show innodb status /G

 

 

##################################################################################

 

 

Query Cache:

 

 

mysql> show status like 'Qcache_hits';

 

mysql> show status like 'Qcache_inserts';

 

 

Query Cache 命中率 = ( Qcache_hits / ( Qcache_hits + Qcache_inserts ) ) * 100%;

 

 

##################################################################################

 

Table Cache:

 

mysql> show status like 'Open_tables';

 

mysql> show status like 'Opened_tables';

 

Table Cache 命中率 = ( Open_tables / Opened_tables ) * 100%

 

##################################################################################

 

Thread Cache:

 

 

mysql> show status like 'connections';

 

mysql> show status like 'Threads_created';

 

 

Thread Cache 命中率 = ( 1 - Threads_created / Connections ) * 100%

 

#################################################################################

bitsCN.com
数码产品性能查询
数码产品性能查询

该软件包括了市面上所有手机CPU,手机跑分情况,电脑CPU,电脑产品信息等等,方便需要大家查阅数码产品最新情况,了解产品特性,能够进行对比选择最具性价比的商品。

下载
来源:php中文网
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
开源免费商场系统广告
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号