Arthas调试案例:Trace案例

简介: Arthas调试案例:Trace案例


trace命令中使用OGNL表达式案例

trace org.imeta.core.base.ObjectUtils formatStringValue  --skipJDKMethod false 'params[0]="1001A010000000001XSU"' 
[arthas@89]$ trace org.imeta.core.base.ObjectUtils formatStringValue  --skipJDKMethod false 'params[0]="1001A010000000001XSU"' 
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 2) cost in 409 ms, listenerId: 13
[arthas@89]$ trace org.imeta.core.base.ObjectUtils formatStringValue  --skipJDKMethod false 'params[0]=="1001A010000000001XSU"' 
Press Q or Ctrl+C to abort.
Affect(class count: 1 , method count: 2) cost in 409 ms, listenerId: 14
`---ts=2022-10-08 16:15:29;thread_name=http-nio-8080-exec-8;id=ff;is_daemon=true;priority=5;TCCL=iuap.yms.server.classloader.YmsParallelWebappClassLoader@de2f350
    `---[1.50431ms] org.imeta.core.base.ObjectUtils:formatStringValue() [throws Exception]
        +---[0.04% 5.42E-4ms ] java.lang.String:length() #218
        +---[0.36% 0.00546ms ] org.imeta.core.model.Property:type() #221
        +---[0.11% 0.001665ms ] org.imeta.core.model.Entity:keyAttribute() #327
        +---[0.05% 7.15E-4ms ] org.imeta.core.model.Entity:keyAttribute() #329
        +---[62.28% 0.936825ms ] org.imeta.core.base.ObjectUtils:formatStringValue() #329 [throws Exception]
        |   `---[89.32% 0.836734ms ] org.imeta.core.base.ObjectUtils:formatStringValue() [throws Exception]
        |       +---[0.06% 4.91E-4ms ] java.lang.String:length() #218
        |       +---[0.09% 7.49E-4ms ] org.imeta.core.model.Property:type() #221
        |       +---[0.07% 5.71E-4ms ] org.imeta.core.model.Property:get() #224
        |       +---[0.17% 0.001401ms ] org.imeta.core.model.DataType:isStringDateTime() #229
        |       +---[0.07% 6.23E-4ms ] org.imeta.core.model.DataType:isDateTime() #239
        |       +---[0.06% 5.32E-4ms ] org.imeta.core.model.DataType:isEnumeration() #271
        |       +---[0.07% 5.67E-4ms ] org.imeta.core.model.DataType:isBoolean() #282
        |       +---[0.06% 5.23E-4ms ] org.imeta.core.model.DataType:isDecimal() #289
        |       +---[0.09% 7.75E-4ms ] org.imeta.core.model.DataType:isNumber() #301
        |       +---[0.13% 0.001103ms ] org.imeta.core.base.ObjectUtils:isChangable() #302
        |       +---[0.09% 7.44E-4ms ] org.imeta.core.model.DataType:name() #307
        |       +---[0.07% 5.94E-4ms ] java.lang.String:equals() #307
        |       +---[0.08% 6.4E-4ms ] org.imeta.core.model.DataType:name() #309
        |       +---[0.06% 4.98E-4ms ] java.lang.String:equals() #309
        |       +---[0.07% 5.65E-4ms ] org.imeta.core.model.DataType:name() #312
        |       +---[0.07% 5.48E-4ms ] java.lang.String:equals() #312
        |       +---[37.20% 0.311272ms ] java.math.BigDecimal:<init>() #315 [throws Exception]
        |       `---throw:java.lang.NumberFormatException #553 [null]
        +---[1.06% 0.015948ms ] com.yonyou.iuap.context.InvocationInfoProxy:getTenantid() #331
        +---[0.65% 0.00974ms ] org.imeta.core.model.Entity:id() #332
        +---[0.22% 0.003294ms ] org.imeta.core.model.Entity:get() #332
        +---[1.38% 0.020821ms ] java.lang.Exception:getMessage() #332
        +---[3.54% 0.053288ms ] java.lang.String:format() #332
        +---[3.21% 0.048344ms ] org.slf4j.Logger:error() #332
        +---[0.11% 0.001583ms ] org.imeta.core.model.Entity:id() #333
        +---[0.09% 0.001386ms ] org.imeta.core.model.Entity:get() #333
        +---[2.53% 0.037992ms ] java.lang.String:format() #333
        +---[2.68% 0.040316ms ] org.imeta.core.exception.MddBusinessException:<init>() #333
        `---throw:org.imeta.core.exception.MddBusinessException #333 [s: 1001A010000000001XSU, entityid: 89bf026e-cc49-4fe7-9a7b-3e8fdcc77c1e, entityTenantId: null, user tenantId: e1yt9k10, e.getMessage: java.lang.NumberFormatException]
相关文章
|
7月前
|
Arthas 测试技术
Arthas调试案例:Stack案例
Arthas调试案例:Stack案例
|
7月前
|
Arthas 测试技术
Arthas调试案例:watch案例
Arthas调试案例:watch案例
|
Arthas Java 测试技术
Arthas 实践案例 | 学习笔记
快速学习 Arthas 实践案例
Arthas 实践案例 | 学习笔记
|
Arthas 监控 IDE
《Arthas系列一》搭建调试环境,千里之行始于足下
《Arthas系列一》最简单的调试环境
380 0
《Arthas系列一》搭建调试环境,千里之行始于足下
|
Arthas JavaScript 前端开发
Arthas的表达式太难了?在线调试Ognl表达式!
![Arthas](https://arthas.aliyun.com/doc/_images/arthas.png) `Arthas`是Alibaba开源的Java诊断工具,深受开发者喜爱。 * Github: [https://github.com/alibaba/arthas](https://github.com/alibaba/arthas) * 文档:[https:/
2341 0
|
7月前
|
Arthas 监控 Java
Java 诊断利器 Arthas使用
Java 诊断利器 Arthas使用
222 0
|
7月前
|
Arthas 监控 Java
Arthas 可以用于监控和诊断在 Windows 系统下部署的 Tomcat 服务
Arthas 可以用于监控和诊断在 Windows 系统下部署的 Tomcat 服务
854 2
|
Arthas 监控 Java
开源Java诊断工具Arthas:开篇之watch实战
还在为排查Java程序线上问题头痛吗,看我们用阿里开源的诊断神器 Arthas 来帮您
554 1
|
Arthas Dubbo Java
Alibaba Java诊断工具Arthas查看Dubbo动态代理类
Alibaba Java诊断工具Arthas查看Dubbo动态代理类
116 0
|
6月前
|
Arthas 测试技术 Java
一文带你快速了解 Java 线上问题快速诊断神器 Arthas
【6月更文挑战第1天】一文带你快速了解 Java 线上问题快速诊断神器 Arthas
304 3