java内存泄露,在什么地方最有可能出现内存泄露?

1 Review static instance and object

All of the classes which implemented a static instance and is invoked as singleton mode are need to be investigated . Especially if it has the static Hashtable,Vector and so on.

2 Review DB connection

DB connection number has increased to an amazing number , and there should be a way to optimize it. It would be a potential memory exhaustion risk.

3 Review Socket Connection

Socket connection numberis increased quickly as Appendix-C. All of the socket connections should beassured to be closed in future. Otherwise it would cause a potential memoryleak.

4 Review File Open

All of the File,BufferReader/Writer, Input/OputputStream should be assured to be closed.

5 Review Thread Invoking

All of the threads shouldnot have a reference from static instance. If not, even the thread is not alive,the thread instance will also not be released.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值