JAVA、PHP、前端、APP、网站开发 - 开发技术学习

文档标签: mysql性能测试

mysql性能测试sysbench配置使用.

网上找的一张图:这里我们要说的是sysbench,sysbench安装方法:https://github.com/akopytov/sysbench#debianubuntu 注意最后一行,一项测试开始前需要用prepare来准备好表和数据,run执行真正的压测,cleanup用来清除数据和表。1、prepareshell> sysbench --test=/usr/share/sysbench/tests/include/oltp_legacy/oltp.lua --oltp_tables_count=20 --oltp-table-size=1000000 --mysql-host=10.19.0.2 --mysql-port=3306 --mysql-user=root --mysql-password=123456 --mysql-db=test --db-driver=mysql --threads=2500 --time=120 --max-requests=0 --oltp-test-mode=complex prepare2...
此文被围观2184次  分类: 数据库 标签:  ·····

站点声明:部分内容源自互联网,为传播信息之用,如有侵权,请联系我们删除。

© Copyright 2011-2024 www.kfju.com. All Rights Reserved.
超级字帖 版权所有。蜀ICP备12031064号