当前位置:网站首页>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 .
边栏推荐
- unity webgl自适应网页尺寸
- CSDN summer camp course project analysis
- Lumion 11.0 software installation package download and installation tutorial
- Argo workflows source code analysis
- 一文读懂Faster RCNN
- 数字滚动增加效果
- Halcon实例转OpenCvSharp(C# OpenCV)实现--瓶口缺陷检测(附源码)
- 【软件测试】最全面试问题和回答,全文背熟不拿下offer算我输
- Pgadmin4 of PostgreSQL graphical interface tool
- [unity notes] screen coordinates to ugui coordinates
猜你喜欢
Lumion 11.0 software installation package download and installation tutorial
慧通编程入门课程 - 2A闯关
Go swagger use
Lombok makes the pit of ⽤ @data and @builder at the same time
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
S120驱动器基本调试步骤总结
本周 火火火火 的开源项目!
MES管理系统的应用和好处有哪些
记一次JAP查询导致OOM的问题分析
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
随机推荐
Common fitting models and application methods of PCL
Draco - gltf model compression tool
STM32 project -- Topic sharing (part)
CDB PDB user rights management
Unity webgl adaptive web page size
一本揭秘字节万台节点ClickHouse背后技术实现的白皮书来了!
[paper reading | deep reading] rolne: improving the quality of network embedding with structural role proximity
6-6漏洞利用-SSH安全防御
postgresql之整体查询大致过程
PCL 常用拟合模型及使用方法
Why am I warned that the 'CMAKE_ TOOLCHAIN_ FILE' variable is not used by the project?
The third season of ape table school is about to launch, opening a new vision for developers under the wave of going to sea
【软件测试】最全面试问题和回答,全文背熟不拿下offer算我输
unity 自定义webgl打包模板
安德鲁斯—-多媒体编程
Lidar: introduction and usage of ouster OS
AWS学习笔记(一)
Overall query process of PostgreSQL
3 -- Xintang nuc980 kernel supports JFFS2, JFFS2 file system production, kernel mount JFFS2, uboot network port settings, and uboot supports TFTP
Rethinking of investment