性能测试分析工具

压测工具

     https://github.com/chaosblade-io/chaosblade
     go语言编写 开箱即用

     中文版文档:https://chaosblade-io.gitbook.io/chaosblade-help-zh-cn/blade

基础使用

     1.启动任务命令

        

     2.停止任务命令

      

 链路监控工具

         免费开源

         https://github.com/pinpoint-apm/pinpoint

         接口性能优化

         

 APM监控

        应用程序性能监控工具

        Apache Skywalking工具    性能比pinpoint高

         

         刚执行完命令不要马上查看端口监听

        

       过一段时间再看端口监听

        

       查看web

       

        修改配置

        

        

  监控微服务

       启动服务后要采集一段时间数据后页面才会有展示

       

       

[program:gateway]
directory=/app/taishi/app/gateway-zuul
command=/bin/bash -c 'source "$0" && exec "$@"' /etc/profile java -javaagent:/home/admin/apache-skywalking-apm-bin-es7/agent/skywalking-agent.jar -Dskywalking.agent.service_name=gateway -Dskywalking.collector.backend_service=192.168.2.191:11800 -jar -Dspring.config.location=conf/application-prod.yml  -Xmx2048m -Xms2048m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=256m gateway-zuul-prod.jar /app/taishi/app/license/license.json
priority=220
process_name=%(program_name)s
#autostart=false
#startsecs=60
user=admin
redirect_stderr=true
stdout_logfile_maxbytes=1000MB
stdout_logfile_backups=10
stdout_logfile=/app/taishi/logs/gateway_supervisord.log
注册探针
FROM 192.13/library/java:latest
MAINTAINER 
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo '$TZ' > /etc/timezone
VOLUME /tmp
ADD register-center-dev.jar register-center-dev.jar
ADD agent.tar.gz /
ADD ca.crt ca.crt
RUN bash -c 'touch /register-center-dev.jar'
ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-javaagent:/agent/skywalking-agent.jar","-Dskywalking.agent.service_name=register","-Dskywalking.collector.backend_service=192.168.19.36:1800","-jar","/register-center-dev.jar","/license.json"]
Dockerfile格式
ADD agent.tar.gz /
ADD license.json license.json
ADD ca.crt ca.crt
RUN bash -c 'touch /iesmp-business-local.jar'
##ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/iesmp-business-local.jar","/license.json"]
ENTRYPOINT ["java","-server","-Xms512m","-Xmx8192m","-XX:MetaspaceSize=400m","-XX:MaxMetaspaceSize=4096m","-XX:-OmitStackTraceInFastThrow","-XX:+PrintGCDetails","-XX:+PrintGCDateStamps","-XX:+PrintHeapAtGC","-Xloggc:/logs/iesmp_gc.log","-Djava.security.egd=file:/dev/./urandom","-javaagent:/agent/skywalking-agent.jar","-Dskywalking.agent.service_name=iesmp-business","-Dskywalking.collector.backend_service=192.168.19.236:11800","-jar","/iesmp-business-local.jar","/license.json"]
Dockerfile-java

      

    skywalking使用方式

       

      sky web页面没有数据的情况下一定要手动点击刷新按钮才会有报表数据

      

 链路监控工具对比

      

     

 

posted @ 2022-03-31 10:33  不懂123  阅读(96)  评论(0编辑  收藏  举报