当前位置: 首页 > news >正文

做钢管用哪个门户网站网页制作的工具有哪些

做钢管用哪个门户网站,网页制作的工具有哪些,wordpress v4.9,网页版微信二维码1、接口耗时查询#xff1a;trace命令 trace 命令能主动搜索 class-pattern#xff0f;method-pattern 对应的方法调用路径#xff0c;渲染和统计整个调用链路上的所有性能开销和追踪调用链路。 1.1 准备测试应用 新建一个 SpringBoot 应用#xff0c;写一耗时久的代码trace命令 trace 命令能主动搜索 class-patternmethod-pattern 对应的方法调用路径渲染和统计整个调用链路上的所有性能开销和追踪调用链路。 1.1 准备测试应用 新建一个 SpringBoot 应用写一耗时久的代码 GetMapping(/methodTrace)public String methodTrace() throws InterruptedException {log.info(methodTrace start...);Thread.sleep(1000);this.methodTrace1();this.methodTrace2();log.info(methodTrace end...);return success;}private void methodTrace1() {log.info(methodTrace1 start...);}private void methodTrace2() throws InterruptedException {log.info(methodTrace2 start...);Thread.sleep(2000);this.methodTrace2_1();this.methodTrace2_2();}private void methodTrace2_1() {log.info(methodTrace2_1 start...);}private void methodTrace2_2() throws InterruptedException {log.info(methodTrace2_2 start...);this.methodTrace2_2_1();}private void methodTrace2_2_1() throws InterruptedException {log.info(methodTrace2_2_1 start...);Thread.sleep(3000);}1.2 运行项目 耗时 7 秒多下面我们通过 trace 命令排查耗时久的罪魁祸首。 1.3 启动 Arthas 并追踪调用链路 java -jar arthas-boot.jar 追踪调用链路trace com.arthas.demo.controller.JvmThreadController methodTrace 命令执行概览Affect(class count: 1, method count: 1) 表示有1个类中的1个方法受到了追踪影响。这次操作耗时133毫秒并分配了监听器ID为1。 请求/methodTrace方法并观察调用详情 方法调用链 methodTrace()调用整体耗时约为6029毫秒 子调用 [0.07% 4.159334ms] org.slf4j.Logger:info() #99首次日志输出调用占总耗时的0.07%。[0.04% 2.476375ms] com.arthas.demo.controller.JvmThreadController:methodTrace1() #102methodTrace1方法调用耗时较短。[83.16% 5014.176042ms] com.arthas.demo.controller.JvmThreadController:methodTrace2() #103methodTrace2方法调用占据总耗时的83.16%。[0.02% 1.465ms] org.slf4j.Logger:info() #105在方法链的末尾新增了一个日志输出调用占总耗时的0.02%。 结论 methodTrace()方法整体耗时约为6029毫秒methodTrace()整体耗时减去下面子调用的耗时得到的就是methodTrace()方法本身的耗时约 1000ms我们的代码 sleep 了1000ms所以耗时基本准确。com.arthas.demo.controller.JvmThreadController:methodTrace2()方法占据总耗时的83.16% 所以下一步要继续最终methodTrace2()方法。 ctrlc退出当前追踪并重新追踪methodTrace2()方法trace com.arthas.demo.controller.JvmThreadController methodTrace2 请求/methodTrace方法并观察调用详情 方法调用链的分析和第 3 步一样就不多阐述了可以看到上图红色字体 com.arthas.demo.controller.JvmThreadController:methodTrace2_2()耗时占 59.98% 所以继续追踪trace com.arthas.demo.controller.JvmThreadController methodTrace2_2 继续追踪trace com.arthas.demo.controller.JvmThreadController methodTrace2_2_1 到这里整个methodTrace方法的调用链路就算走完了我们可以清楚的追踪到每个方法以及子方法的耗时和调用链路然后去分析整个接口的性能最终去调优。 再回顾一下整个追踪流程 trace 能方便的帮助你定位和发现因 RT 高而导致的性能问题缺陷但其每次只能跟踪一级方法的调用链路所以我们需要逐步分析然后一级一级跟踪。 2、 函数执行数据观测watch 命令
http://www.dnsts.com.cn/news/22256.html

相关文章:

  • 网站建设费用的会计如何快速推广一个新产品
  • 网站怎么推广效果好昆明市住房和城乡建设局官方网站
  • 湖南seo网站设计网站建站网站多少钱
  • 视频网站设计与开发seo百度排名优化
  • 成都网站建设开发公司内江市建设培训中心网站
  • 移动端官网佛山旺道seo优化
  • jsp怎么做视频网站搜索引擎营销成功的案例
  • 求推荐个网站wordpress 字体不好看
  • wordpress中运行程序吐鲁番seo招聘
  • iis搭建网站时 属于默认文档的是六安网站
  • 合肥网站建设索q479185700番禺大石做网站
  • 阿里巴巴网站建设的背景海南注册家族公司条件
  • 福州php做网站php网站开发实例教程思考题
  • 资阳市住房和城乡建设局网站科技感网站
  • 网站备案不通过phpcms v9网站导航
  • 本地搭建网站网站后台保定网站建设公司排名
  • 企业网站搭建流程有名的软件开发公司
  • 信得过的网站开发推广电商网站话费充值怎么做
  • 西安网站建设推广服务长沙大型公司
  • 德阳公司网站建设phalapi wordpress
  • 深圳网站开发哪个好wordpress菜单移动
  • 摄影展示网站源码定制小程序网站开发公司
  • 一般的域名可以做彩票网站吗中天建设网站
  • 外贸网站建设高端的网站建设800元全包
  • 网站设计ai百度云网盘登录入口
  • 教育培训网站制作兰州网站优化推广
  • 百度竞价排名收费上海专业网站优化排名
  • 衡水哪个公司做网站好网站的链接优化
  • 青海省网站建设平台肇庆网站制作案例
  • 珠海建网站公司设计学习网站