标签:jvm
最新一应用 ,发现有2G以上的内存不释放
代码问题点:
Cipher ci = Cipher.getInstance("RSA", new BouncyCastleProvider());
代码修改正点:
public static synchronized BouncyCastleProvider getInstance() {
if (bouncyCastleProvider == null) {
bouncyCastleProvider = new BouncyCastleProvider();
}
return bouncyCastleProvider;
}以上问题,有blog的已经详细说明,请参考:http://timerbin.iteye.com/blog/2151969
标签:jvm
原文地址:http://blog.csdn.net/wh0426/article/details/45670993