汪小哥

Results 6 issues of 汪小哥

## 一、背景 大早上 线上k8s 机子 某个机子 cpu 飙高,导致k8s 健康检查失败,线上环境会自动执行jstack,上传到oss 通知到 钉钉告警群,直接分析锁、cpu 高的线程。 ## 二、过程分析 ### 2.1 排查cpu 占用最高的线程 使用`jstack` 分析: 发现占用CPU最高的线程栈是: `org.apache.commons.beanutils.MethodUtils#getMatchingAccessibleMethod` 。 当然也可以使用arthas 的 `thread -n 10` 命令 ,由于自动监控抓取的,省去了这一步了。...

user-case

https://blog.csdn.net/qq_36869808/article/details/127323634 升级一下 Apache Commons Text 版本

## 背景 使用了https://square.github.io/retrofit/ 包装接口,响应值不正常的时候抛出一个异常堆栈 异常堆栈从哪里来的?不应该是 com.fasterxml.jackson.core.JsonParseException 异常? 怎么会被包装成了 java.lang.reflect.UndeclaredThrowableException ```java java.lang.reflect.UndeclaredThrowableException at com.sun.proxy.$Proxy60.tokenAuth(Unknown Source) at com.example.controller.AccountTestController.auth(AccountTestController.java:114) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) at...

user-case

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; systemId:...

## job run error not run in background ```bash watch CityRestController getCity '{params,returnObj,throwExp}' -n 5 -x 3 & ``` ## save result ```bash [arthas@3244]$ options save-result true NAME BEFORE-VALUE AFTER-VALUE...