当前位置:网站首页>Use Arthas to locate online problems
Use Arthas to locate online problems
2022-07-26 23:24:00 【I'm tired of eating, but I'm not fat】
background : There is an export PDF The function of , It works well locally , Online exception , The exception thrown cannot directly locate the problem .
1、 Use arthas To keep track of
- Get into arths,attach Entry project
$ as.sh
Arthas script version: 3.5.5
[INFO] JAVA_HOME: /usr/local/jdk1.8.0_72
[INFO] Process 57135 already using port 3658
[INFO] Process 57135 already using port 8563
Found existing java process, please choose one and input the serial number of the process, eg : 1. Then hit ENTER.
[1]: 134242 ccs-gateway.jar
[2]: 47802 ccs-data-biz.jar
2
- According to online log Locate the approximate location of the anomaly

- To local IDE Open source

createPDF Method null pointer , The first thing you must think of is parameters htmlStr yes null
- Get into freemarkerRender Method view , Why go back null

Directly view the key processing functions
template.process(dataMap, out);Use arthas Of watch command , Tracking parameters 、 Return value 、 Abnormal information
watch freemarker.template.Template process '{params,returnObj,throwExp}' -n 5 -x 3 '1==1'
Tracking findings

Capture is not specified in the source code because of exceptions
TemplateModelExceptionthereforetemplate.process(dataMap, out);The method returns directly after reporting an error null, So change the exception capture directly toExcelpTionthat will do
边栏推荐
- 【MySQL】CentOS 7.9安装、使用MySQL-5.7.39二进制版
- Problems and solutions encountered in using nextline(), nextint() and next() in scanner
- [shader realizes swaying effect _shader effect Chapter 4]
- P5469 [noi2019] robot (Lagrange interpolation, interval DP)
- What is Base64?
- Boss; Can flick CDC Oracle finish reading the full amount of data, just like directly fetching data from the database
- Kingbasees SQL language reference manual of Jincang database (3.1.1.14. scope type)
- json格式化小工具--pyqt5实例
- After working for one year, I have some insights (written in 2017)
- HCIA-R&S自用笔记(20)VLAN综合实验、GVRP
猜你喜欢

HCIA-R&S自用笔记(20)VLAN综合实验、GVRP

Too busy with scientific research to take care of your family? Chen Ting: life cannot have only one fulcrum

HCIA-R&S自用笔记(21)STP技术背景、STP基础和数据包结构、STP选举规则及案例

比海豹便宜,造型炸裂空间大,20万左右真没对手?长安全新“王炸”这样选才划算

Introduction to the use of Jerry downloader forced download tool_ Ac695n696nad14ad15 full range support

json格式化小工具--pyqt5实例

DAO:OP 代币和不可转让的 NFT 致力于建立新的数字民主

KT6368A蓝牙芯片开发注意事项以及问题集锦--长期更新

Recruit | PostgreSQL database R & D engineers every week, with an annual salary of 60+, high salary for famous enterprises, and challenge yourself!
![[postgresql]postgresqlg使用enerate_series() 函数补全统计](/img/62/893986eb97a61f4e9ef32abc8d2a90.png)
[postgresql]postgresqlg使用enerate_series() 函数补全统计
随机推荐
Restful interface specification
[shader realizes shine effect _shader effect Chapter 3]
The most classic Nature paper on Alzheimer's disease is suspected of fraud
HCIA-R&S自用笔记(18)园区网架构基础、交换机工作原理、VLAN原理
Counter attack dark horse: devdbops training, give you the best courses!
C.Net timestamp and time conversion support time zone
Kingbasees database administrator's Guide -- 11 manage data files and temporary files
工作一年后,我有些感悟(写于2017年)
Cloud native microservices Chapter 1 server environment description
Kingbasees SQL language reference manual of Jincang database (3.1.1.3. currency type)
HCIA-R&S自用笔记(21)STP技术背景、STP基础和数据包结构、STP选举规则及案例
Domestic DRAM will be mass produced by the end of the year, but the road ahead is still long!
Learn various details and thoughts of chatroom implementation in Muduo
Novice online interview [Hangzhou multi tester] [Hangzhou multi tester _ Wang Sir]
2022年物联网行业有哪些用例?
pgsql -> flink cdc -> flink -> Mysql, if a PgSQL CDC
8-其他编程语言--记录
Hcia-r & s self use notes (23) DHCP
PostgreSQL 与 Navicat:数据库行业的中坚力量
Related functions of strings