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 2023-05-01 12:33  荣锋亮  阅读(60)  评论(0编辑  收藏  举报

导航