fabric调试:go pprof查看内存
2017-07-20 15:38
288 查看
运行pprof
1、代码开启pprofimport _ "net/http/pprof" if viper.GetBool("peer.profile.enabled") { go func() { profileListenAddress := viper.GetString("peer.profile.listenAddress") logger.Infof("Starting profiling server with listenAddress = %s", profileListenAddress) if profileErr := http.ListenAndServe(profileListenAddress, nil); profileErr != nil { logger.Errorf("Error starting profiler: %s", profileErr) } }() }
2、peer节点设置:
core.yaml: profile: enabled: true listenAddress: 0.0.0.0:6060
3、虚拟机转发端口设置:
4、web查看:
5、也可通过命令行查看:
go tool pprof http://localhost:6060/debug/pprof/heap
相关文章推荐
- gdb调试时查看内存
- 很经典的GDB调试命令,包括查看变量,查看内存
- GDB调试命令,包括查看变量,查看内存
- vs2008调试添加查看内存
- 在VS中调试C#程序,如何查看内存、寄存器、反汇编
- vs2013断点调试并查看内存方法
- Vc 6.0 调试技巧,可以查看程序在内存的分布情况
- 利用UltraEdit将十六进制转换成ASCII 字符串(调试查看内存有用哦)
- gc螺旋模型(内存1K 调试状态下查看结果)
- 调试 内存查看StringCchCopy的运行前后
- [OpenGL调试]保存并查看内存中的数据图像
- 很经典的GDB调试命令,包括查看变量,查看内存
- 在VS中调试C#程序,如何查看内存、寄存器、反汇编
- 很经典的GDB调试命令,包括查看变量,查看内存
- gdb调试进阶之查看指定内存中的内容
- 在VS中调试C#程序,如何查看内存、寄存器、反汇编
- ABAP如何在调试查看EXPORT/IMPORT 内存数据
- 在Delphi 7调试过程中查看内存
- MIUI添加内存调试工具:查看进程中的Bitmap信息
- Bochs调试之查看内存