对MYSQL进行压力测试

php中文网
发布: 2016-06-07 15:13:25
原创
1241人浏览过

欢迎进入Linux社区论坛,与200万技术人员互动交流 >>进入 1、安装supersmack [url]http://vegan.net/tony/supersmack/[/url] 安装过程以及我中间遇到问题的总结都在这里。 之前记得把libmysqlclient.so.16拷贝到/usr/lib中去,这样make 的时候不用改MakeFile

欢迎进入linux社区论坛,与200万技术人员互动交流 >>进入

    1、安装supersmack

    [url]http://vegan.net/tony/supersmack/[/url]

    安装过程以及我中间遇到问题的总结都在这里。

    之前记得把libmysqlclient.so.16拷贝到/usr/lib中去,这样make 的时候不用改MakeFile文件。

    [root@localhost super-smack-1.3]# cp /usr/local/mysql/libmysqlclient.so.16 /usr/lib

    我遇到的问题如下:

    error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory

    看到北京野狼的这个帖子:

    [url]http://bbs.chinaunix.net/archiver/?tid-638662.html[/url]

    [root@localhost super-smack-1.2]# ./configure --with-mysql

    configure: error: installation or configuration problem: C++ compiler cannot create executables.

    没有安装C++编译器

    [root@localhost rpmpackage]# rpm -ivh libc-client-2004g-2.2.1.i386.rpm

    Preparing…                ########################################### [100%]

    1:libc-client            ########################################### [100%]

    [root@localhost rpmpackage]# rpm -ivh libc-client-devel-2004g-2.2.1.i386.rpm

    Preparing…                ########################################### [100%]

    1:libc-client-devel      ########################################### [100%]

    [root@localhost rpmpackage]# rpm -ivh libstdc++-devel-4.1.1-52.el5.i386.rpm

    Preparing…                ########################################### [100%]

    1:libstdc++-devel        ########################################### [100%]

    [root@localhost rpmpackage]# rpm -ivh gcc-c++-4.1.1-52.el5.i386.rpm

    Preparing…                ########################################### [100%]

    1:gcc-c++                ########################################### [100%]

    [root@localhost rpmpackage]# cd /sourcepackage/super-smack-1.2

    [root@localhost super-smack-1.2]# ./configure --with-mysql

    loading cache ./config.cache

    checking for a BSD compatible install… /usr/bin/install -c

    checking whether build environment is sane… yes

    checking whether make sets ${MAKE}… yes

    …

    updating cache ./config.cache

    creating ./config.status

    creating Makefile

    creating src/Makefile

    creating config.h

    Building with the following options:

    MySQL Support…… yes

    PostgreSQL Support…… no

    Oracle Support…… no

    If this is not what you intended, please re-run configure.

    Thanks for using super-smack!

    然后make;make install

    其他问题看

    [url]http://vegan.net/tony/supersmack/FAQ.php[/url]

    2、进行实际测试。

    拷贝示例文件。

    [root@localhost super-smack-1.3]# cp -r smacks/ /usr/local/bin/

    修改用户名和密码为自己的

    默认是测试MYISAM表的性能。

    [root@localhost smacks]# super-smack -d mysql select-key.smack 10 1000

    Error running query select count(*) from http_auth:Table 'test.http_auth' doesn't exist

    Creating table 'http_auth'

    Loading data from file '/var/smack-data/words.dat' into table 'http_auth'

    Table http_auth is now ready for the test

    Query Barrel Report for client smacker1

    connect: max=156ms  min=0ms avg= 21ms from 10 clients

    Query_type      num_queries     max_time        min_time        q_per_s

    select_index    20000   0       0       16299.96

[1] [2] 

对MYSQL进行压力测试

最佳 Windows 性能的顶级免费优化软件
最佳 Windows 性能的顶级免费优化软件

每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。

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

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