当前位置:网站首页>内存泄露的最直接表现
内存泄露的最直接表现
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 进程异常消失,这个明显不对的。
边栏推荐
猜你喜欢

Lvgl usage demo and instructions 2

L'enquête en aveugle a montré que les femmes étaient meilleures que les hommes.

VIM from dislike to dependence (20) -- global command
![[11. two dimensional difference]](/img/b2/da624f8a7f97c46b8e346cf6d6da49.png)
[11. two dimensional difference]

Game asset reuse: a new way to find required game assets faster

100%弄明白5种IO模型

MySQL锁详解

Linux下Redis的安装

Code source AQS sous - jacent pour la programmation simultanée juc

MySQL索引详解
随机推荐
RockerMQ消息发送与消费模式
【原创】TypeScript字符串utf-8编码解码
RMAN-08137 主库无法删除归档文件
2022.6.26-----leetcode.710
Reference | upgrade win11 mobile hotspot can not be opened or connected
(note) Anaconda navigator flashback solution
淘宝虚拟产品开店教程之作图篇
oracle怎样将字符串转为多行
经典的一道面试题,涵盖4个热点知识
一种太阳能电荷泵供电电路的方案设计
[11. two dimensional difference]
Matlab tips (18) matrix analysis -- entropy weight method
盲測調查顯示女碼農比男碼農更優秀
100% understanding of 5 IO models
Lvgl usage demo and instructions 2
AQS underlying source code of concurrent programming JUC
Filter filter
lvgl 说明3关于lvgl guider的使用
冒牌构造函数???
参考 | Win11 开启热点之后电脑不能上网