vault backup: 2025-12-04 09:12:56
This commit is contained in:
25
技术探究/JAVA/JVM/java 内存 排查.md
Normal file
25
技术探究/JAVA/JVM/java 内存 排查.md
Normal 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
|
||||

|
||||
刘银 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
|
||||
```
|
||||
32
技术探究/JAVA/Mybatis Mybatis plus.md
Normal file
32
技术探究/JAVA/Mybatis Mybatis plus.md
Normal 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
|
||||
```
|
||||
BIN
技术探究/JAVA/spring/springcloud/assets/企业微信截图_16705110327149.png
Normal file
BIN
技术探究/JAVA/spring/springcloud/assets/企业微信截图_16705110327149.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.4 KiB |
BIN
技术探究/JAVA/spring/springcloud/assets/企业微信截图_16705110828214.png
Normal file
BIN
技术探究/JAVA/spring/springcloud/assets/企业微信截图_16705110828214.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
18
技术探究/JAVA/spring/springcloud/springcloud 问题.md
Normal file
18
技术探究/JAVA/spring/springcloud/springcloud 问题.md
Normal 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
|
||||
Reference in New Issue
Block a user