当前位置:网站首页>2. Memory leak and memory overflow
2. Memory leak and memory overflow
2022-07-16 05:44:00 【Get lazy】
One : Definition
<1> Memory leak :
The memory of objects that will no longer be used will not be recycled , It's a memory leak .
for example : Strongly referenced objects are not recycled , May cause memory leaks .
A more popular explanation is when using resources , It opens up a space for this resource , But no resources are released after use . Resources are always in memory , This leads to a memory leak . When the number of memory leaks reaches a certain level, it becomes a memory overflow .
<2> out of memory :
When the program applies for memory , There is not enough memory for applicants .
A more popular explanation is that the space we need to use is larger than the memory we have. Memory overflow caused by insufficient memory
Two : example
Memory leak :
ThreadLocal Memory leak
边栏推荐
- win10下测试mysql主从同步
- 树结构工具-TreeUtil使用
- Sécurité des réseaux intervention d'urgence - technologie de collecte de données électroniques
- 组件化编码流程--Todo-list案例
- js 数字序号 转 字母序号
- Buuctf nine links
- Package management tools
- Understanding service governance in distributed development
- 使用 ramda 解析 .yarnrc/.npmrc 配置文件的例子
- Svelte 官方入门教程(2)—— 反应性
猜你喜欢
随机推荐
[Huang ah code] getting started with MySQL - 2. Using data definition language (DDL) to operate the database
Idea automatically generates entity classes of corresponding tables in the database
:class修改样式
Online multi line text batch regular replacement add suffix tool
【黄啊码】PHP配合微信公众号生成推广二维码
BUUCTF 来首歌吧
rem布局
【黄啊码】老师,高考后我想选软件开发相关专业,你觉得选哪个方向好?高考志愿怎么填报?
Basic knowledge of network
[Huang ah code] teacher, I want to choose software development related majors after the college entrance examination. Which direction do you think is good? How to fill in the college entrance examinat
[Huang ah code] Microsoft Internet Explorer will be retired. Netizens said: what should I do in the future?
[NCTF2019]Fake XML cookbook
[Huang ah code] PHP cooperates with xlwriter to realize infinite header level excel export
内存取证-Volatility安装使用以及一些CTF比赛题目
[ASIS 2019]Unicorn shop
包管理工具
Sécurité des réseaux intervention d'urgence - technologie de collecte de données électroniques
垃圾回收机制
Modularity CMJ & ESM
【黄啊码】微软IE浏览器将退役 网友说:以后考试报名咋办?


![[Huang ah code] today, someone actually asked me: what does where 1=1 mean?](/img/66/2413c1cfb39e6384dc2fa8af276e9e.png)






