step 1 获取cpu采样
go tool pprof http://localhost:6001/debug/pprof/profile
执行完成后会打印采样文件所在的位置
step 2 web端火焰图展示
go tool pprof -http=0.0.0.0:8081 /home/xxxx/pprof/pprof.gsmdatasvrd.samples.cpu.037.pb.gz

step 1 获取cpu采样
go tool pprof http://localhost:6001/debug/pprof/profile
执行完成后会打印采样文件所在的位置
step 2 web端火焰图展示
go tool pprof -http=0.0.0.0:8081 /home/xxxx/pprof/pprof.gsmdatasvrd.samples.cpu.037.pb.gz
./kafka-console-producer.sh –topic mmm_m_m_topic –bootstrap-server 9.124.353.105:9092
提供交互式终端,可以写入消息
./kafka-topics.sh –create –botstrap-server 9.134.153.105:9092 –replication-factor 1 –partition 12 –topic mmm_m_m_topic
创建topic
yum install fio fio -filename=test.data -direct=1 -iodepth 1 -thread -rw=randrw -ioengine=psync -bs=16k -size=500M -numjobs=10 -runtime=10 -group_reporting -name=mytest
关注write IOPS 和 read IOPS所在行的数据