bitsCN.com
mysql性能计算
iWebShop基于iWebSI框架开发,在获得iWebSI技术平台库支持的条件下,iWebShop可以轻松满足用户量级百万至千万级的大型电子商务网站的性能要求。站点的集群与分布式技术(分布式计算与存储/高可用性/负载均衡)被屏蔽在SI 平台之内,基于iWebShop并且按照SI平台库扩展规范开发的新增功能模块,也将同时获得这种超级计算与处理的能力。作为开源的LAMP电子商务系统,iWebShop
0
##################################################################################
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
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号