当前位置:网站首页>内存泄露的最直接表现
内存泄露的最直接表现
2022-06-27 08:25:00 【C_x_330】
java程序内存泄露的最直接表现是( )
a 频繁FullGc b jvm崩溃程序 c 抛内存溢出的Exception d java进程异常消失答案:c
内存泄漏就是对象引用消失了,对象内存却没有被回收
A答案:FullGC 是老年代内存空间不足的时候,才会触发的,老年代一般是生命周期较长的对象或者大对象,频繁的 FullGC 不会可能会影响程序性能(因为内存回收需要消耗CPU等资源),但是并不会直接导致内存泄漏。
B 答案:JVM奔溃的可能是内存溢出引起的,也可能是其他导致 JVM崩溃的操作,例如设置了错误的JVM参数等。
C 答案:内存异常,最常见的 就是 StackOverFlow 了把,内存溢出,其实内存泄漏的最终结果就是内存溢出。
D 答案:Java 进程异常消失,这个明显不对的。
边栏推荐
- Analysis log log
- Coggle 30 days of ML July competition learning
- Understanding mvcc in MySQL transactions is super simple
- Blind survey shows that female code farmers are better than male code farmers
- 爬一个网页的所有导师信息
- 浏览器的markdown插件显示不了图片
- Preliminary understanding of C #
- [cloud native] 2.3 kubernetes core practice (Part 1)
- ZABBIX deployment instructions (server+win client + switch (H3C))
- JVM common garbage collector
猜你喜欢
随机推荐
CLassLoader
不会初始化类的几种Case
LVGL GUI GUIDER移植代码到STM32
Matlab tips (18) matrix analysis -- entropy weight method
[notes on c++ primer] Chapter 3 string, vector and array
数据类型占内存大小?LongVsObject
JVM common garbage collector
【每日一练】产品卡片动画效果的实现
March into machine learning -- Preface
VIM from dislike to dependence (19) -- substitution
MySQL环境变量配置的教程
使线程释放锁资源的操作/方法重载一点注意事项
SIG associé: toutes les routes mènent à ue5
浏览器的markdown插件显示不了图片
並發編程JUC的AQS底層源碼
Creation process and memory layout of objects at JVM level
Redis配置文件详解
oracle用一条sql查出哪些数据不在某个表里
MATLAB小技巧(19)矩阵分析--主成分分析
MySQL锁详解




![[13. number and bit operation of 1 in binary]](/img/53/024f9742d1936fe6f96f4676cea00e.png)




