bytehound 参考试用

参考使用

 


备注: 测试的是一个nginx 服务的情况,使用了自己构建的支持centos 7 的版本

使用

  • 安装nginx 以及ab
 
yum install -y nginx  httpd-tools
  • 配置nginx
    使用单进程模式,不使用后台进行
 
master_process off;
worker_processes 1;
daemon off;
  • 启动nginx
LD_PRELOAD=/opt/bytehound/libbytehound.so  nginx
  • 启动bytehound server ui
./bytehound server memory-profiling_*.dat
  • 压测
ab -n 10000 -c 100 http://localhost/
  • ssh tunnel 转发
ssh -L 127.0.0.1:8080:127.0.0.1:8080  root@<server>
  • 效果

 

火焰图

说明

以上是一个简单的试用,因为基于了centos 7 对于一些内核参数支持是有限的,整体上bytehound 还是很不错的,支持的功能也很多,值得使用

参考资料

https://github.com/koute/bytehound/tree/master
https://koute.github.io/bytehound/introduction.html
https://github.com/rongfengliang/bytehound-package/releases/tag/v0.11.0
https://www.ssh.com/academy/ssh/tunneling-example#local-forwarding

posted on   荣锋亮  阅读(84)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2022-05-01 openresty 提供的几个新的生命周期阶段指令
2022-05-01 openresty lua 文件处理的一些技巧
2022-05-01 使用TypeScriptToLua+openresty-lua-types+docker-compose nginx resty.ipmatcher 集成使用
2021-05-01 cubestore 使用需要注意的一些问题
2021-05-01 cubestore 运行试用
2021-05-01 cube.js cubestore 生产可用了
2020-05-01 lightproxy 阿里巴巴开源的基于proxy 的web debug 工具

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示