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
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用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 工具