当前位置:网站首页>Remember the problem analysis of oom caused by a Jap query
Remember the problem analysis of oom caused by a Jap query
2022-07-07 02:38:00 【Code Marathon】
background
I met online some time ago OOM problem , After investigation and analysis, it is found that there is an interface that returns too much data at one time ( about 200W A result set ), However, although there is a large amount of interface data for the problem , But the returned data has only one length 7 Of string Type field , therefore 200W About a dozen M, This is not enough to cause OOM.
make a concrete analysis
Direct analysis cannot explain the cause OOM The reason why the , That's only simulation , So I started a local Interfaces simulate the amount of data returned , Found that the memory consumption is huge , Far more than a dozen M, So the heap memory is exported for analysis .
Through heap memory analysis, we can see , Original 7 Bytes of string type , Packaged into various objects , And after being packaged, the occupied space increases dramatically , Finally achieve 1G many .
Conclusion
Finally due to JPA The encapsulation of various objects produced 1G Excessive memory consumption , Eventually lead to OOM.
therefore ,JPA Although it is very convenient to use , But that's why , If you don't understand its principle , You'll still step on many holes .
Easy to use , Principle is not easy , And the use and cherish .
边栏推荐
- Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
- A new path for enterprise mid Platform Construction -- low code platform
- 1个月增长900w+播放!总结B站顶流恰饭的2个新趋势
- 4 -- Xintang nuc980 mount initramfs NFS file system
- Yyds dry goods inventory # solve the real problem of famous enterprises: maximum difference
- unity webgl自适应网页尺寸
- 纽约大学 CITIES 研究中心招聘理学硕士和博士后
- 基于ensp防火墙双击热备二层网络规划与设计
- leetcode:736. LISP syntax parsing [flowery + stack + status enumaotu + slots]
- postgresql之整体查询大致过程
猜你喜欢
记一次JAP查询导致OOM的问题分析
FLIR blackfly s usb3 industrial camera: how to use counters and timers
[paper reading | deep reading] graphsage:inductive representation learning on large graphs
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
Lombok同时使⽤@Data和@Builder 的坑
Summer Challenge database Xueba notes (Part 2)~
Unity custom webgl packaging template
Alibaba cloud middleware open source past
KYSL 海康摄像头 8247 h9 isapi测试
Integerset of PostgreSQL
随机推荐
Alibaba cloud middleware open source past
Ali yunyili: how does yunyuansheng solve the problem of reducing costs and improving efficiency?
Cloud Mail .NET Edition
AWS学习笔记(一)
软件测试——Jmeter接口测试之常用断言
数字滚动增加效果
[xlua notes] array of lua to array of C #
进程管理基础
Summer Challenge database Xueba notes (Part 2)~
记一次JAP查询导致OOM的问题分析
Unity custom webgl packaging template
哈希表及完整注释
[paper reading | deep reading] anrl: attributed network representation learning via deep neural networks
Processus général de requête pour PostgreSQL
安全巡检的工作
unity 自定义webgl打包模板
FLIR blackfly s usb3 industrial camera: how to use counters and timers
fasterxml ToStringSerializerBase报错
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
如何从0到1构建32Core树莓派集群