有关Session和servletContext长期占用服务器内存的解决方案

马克-to-win:有关Session和servletContext长期占用服务器内存的解决方案就是:对于确定不再需要的数据,一定要及时释放所占 资源,比如:context.removeAttribute("mysqlds");否则的话,严重的情况可能造成内存泄露。(请参见我Java部分第 三章内存泄漏部分知识。)

版权保护原文出处:http://www.mark-to-win.com/index.html?content=Jsp/jspUrl.html&chapter=Jsp/jsp2_web.html#HowFreeSessionResource

猜你喜欢

转载自blog.csdn.net/mark_to_win/article/details/89225510