vault backup: 2025-12-04 09:12:56

This commit is contained in:
杜鹏飞
2025-12-04 09:12:56 +08:00
commit 71e83861de
300 changed files with 339584 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
>
刘银 11-23 09:37:15
弄下dump日志有dump日志就好分析了
杜鹏飞 11-23 09:37:28
dump日志是程序输出日志么
杜鹏飞 11-23 09:39:55
我去操作下。。
刘银 11-23 09:41:12
![](file:///E:/Documents/WXWork/1688855439456504/Cache/Image/2023-11/企业微信截图_d118f4d1-c13d-4399-ac47-c581b303a019.png)
刘银 11-23 09:41:23
启动参数加上这个,
刘银 11-23 09:41:42
挂掉后会生成dump文件。
刘银 11-23 09:42:33
dump文件直接拖到idea里面结合代码就可以看到内存占用可以分析到哪行代码。
java 进程查看
```shell
top -o %MEM -b -n 1 | grep java | awk '{print "PID: "$1" \t 虚拟内存: "$5" \t 物理内存: "$6" \t 共享内存: "$7" \t CPU使用率: "$9"% \t 内存使用率: "$10"%"}'
```
线程查看
```shell
ps p {pid} -L -o pcpu,pmem,pid,tid,time,tname,cmd
```

View File

@@ -0,0 +1,32 @@
### mybatis xxx join 做连接查询
引入以下依赖
```xml
<dependency>
<groupId>com.github.yulichang</groupId>
<artifactId>mybatis-plus-join-boot-starter</artifactId>
<version>1.4.9</version>
</dependency>
```
``` JAVA
import com.baomidou.mybatisplus.extension.service.IService;
to
import com.github.yulichang.base.MPJBaseService;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
to
import com.github.yulichang.base.MPJBaseMapper;
LambdaQueryWrapper
to
MPJLambdaWrapper
```
### 批量 性能 优化
> https://developer.aliyun.com/article/1055592
```
rewriteBatchedStatements=true
```

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,18 @@
## feign 调用不成功
![[企业微信截图_16705110327149.png]]
![[企业微信截图_16705110828214.png]]
网卡不通,导致调用失败 设置 微服务 网卡
spring:
application:
# 应用名称
name: country-assets
profiles:
# 环境配置
active: @profiles.active@
cloud:
inetutils:
preferred-networks: 10.4.42
### scg spring cloud gateway 服务异常
http://www.manongjc.com/detail/27-iazhohptlxsunmg.html