方向不对,努力白费,经验类测试技术才是职场重要保险! | (点击→)【公告】精力有限,博客暂停更新,最新分享干货请联系作者vx了解

k8s中使用arthas:Enhance error! exception: java.lang.UnsupportedOperationException: class redefinition failed

错误信息:

[arthas@6]$ trace com.qzcsbj.gift.controller.OrderController findByOrderNumber '#cost>1000'
Affect(class count: 1 , method count: 1) cost in 230 ms, listenerId: 1
Enhance error! exception: java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)
error happens when enhancing class: class redefinition failed: attempted to change the schema (add/remove fields), check arthas log: /root/logs/arthas/arthas.log

 

 

方案:

1、jdk版本过低,升级打包环境jdk的版本,比如:jdk-8u331

2、探针冲突,多个探针不要同时使用

3、添加jvm参数:-Dskywalking.agent.is_cache_enhanced_class=true -Dskywalking.agent.class_cache_mode=MEMORY

 

 

posted @ 2022-08-03 18:50  全栈测试笔记  阅读(1827)  评论(0)    收藏  举报
浏览器标题切换
浏览器标题切换end