遇一山,过一山,处处有风景;只要勇敢向前,一路尽是繁花盛开。 | (点击查看→)【测试干货】python/java自动化、持续集成、性能、测开、简历、笔试面试等

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  全栈测试笔记  阅读(1806)  评论(0)    收藏  举报
浏览器标题切换
浏览器标题切换end