TPS - Transactions Per Second(每秒传输的事物处理个数),这是指server每秒处理的事务数,支持事务的存储引擎如InnoDB等特有的一个性能指标。

计算方法:

TPS = (COM_COMMIT + COM_ROLLBACK)/UPTIME

use information_schema;
select VARIABLE_VALUE into @num_com from GLOBAL_STATUS where VARIABLE_NAME ='COM_COMMIT';
select VARIABLE_VALUE into @num_roll from GLOBAL_STATUS where VARIABLE_NAME ='COM_ROLLBACK';
select VARIABLE_VALUE into @uptime from GLOBAL_STATUS where VARIABLE_NAME ='UPTIME';
select (@num_com+@num_roll)/@uptime;

QPS - Queries Per Second(每秒查询处理量)同一时候适用与InnoDB和MyISAM 引擎

计算方法:

QPS=QUESTIONS/UPTIME

use information_schema;
select VARIABLE_VALUE into @num_queries from GLOBAL_STATUS where VARIABLE_NAME ='QUESTIONS';
select VARIABLE_VALUE into @uptime from GLOBAL_STATUS where VARIABLE_NAME ='UPTIME';
select @num_queries/@uptime;

最新文章

  1. java读写file
  2. .NET Lambda
  3. yii模块下面的组件
  4. 利用JSDOC快速生成注释文档,非常棒。
  5. C#串口通信—传输文件测试
  6. MAC下反編譯安卓APK
  7. flst与fitem命令是这么用的
  8. 约跑APP测试报告
  9. C# WebApi传参之Get请求-AJAX
  10. android 学习随笔十六(广播 )
  11. UML学习(二)-----类图
  12. TPL异步并行编程之取消任务
  13. Redhat 6.3中syslog信息丢失
  14. Android的主线程和子线程
  15. 阿里舆情︱舆情热词分析架构简述(Demo学习)
  16. Tomcat设计模式
  17. postman上传图片时已经添加cookie,但仍显示未登陆
  18. 【mybatis源码学习】mybtias扩展点
  19. IntelliJ IDEA 2016.2 注册破解激活教程
  20. Interpreting /proc/meminfo and free output for Red Hat Enterprise Linux 5, 6 and 7

热门文章

  1. mysql5.7配置
  2. Django:调用css、image、js
  3. phpize Cannot find autoconf. 错误解决
  4. 【HIHOCODER 1052 】基因工程(贪心)
  5. POJ 3659 Cell phone Network (树的最小点覆盖, 树形DP)
  6. python基础——4(数字、字符串、列表类型的内置方法介绍)
  7. openstack创建虚拟机之后使用ssh登陆的解决办法
  8. XTUOJ 15503 - C
  9. POJ 2420 A Star not a Tree?【爬山法】
  10. Eclipse安装插件长时间停留在calculating requirements and dependencies