From: manojsakarwal <man...@in...> - 2017-02-02 13:09:15
|
Hi All, Yesterday, we upgraded HTML Unit to 2.24 as suggested but we are still seeing the same results. Memory usage is higher, near to 95% and around 98% of CPU usage is observed after we upgraded from HTML Unit 2.15. We have also tried to solve it from our side by adding wd.getJobManager().shutdown(); Following is the new change we have made it close method to solve it. public void closeSession() { String command = "CloseSession"; try{ if(_webClient != null){ List<WebWindow> windows = _webClient.getWebWindows(); for (WebWindow wd : windows) { // wd.getJobManager().removeAllJobs(); //removed this to replace with shutdown. wd.getJobManager().shutdown(); } _webClient.getCookieManager().clearCookies(); } }catch (Exception e) { Log.writeLogMessage(Log.WARN, ERROR_LOG+command+e.getMessage(), e); }finally{ if(_webClient != null){ _webClient.close(); } } } but this also did not help. <http://htmlunit.10904.n7.nabble.com/file/n40902/Pasted_image_at_2017_02_01_10_441AM.png> Please help us in troubleshooting. Thanks, Manoj -- View this message in context: http://htmlunit.10904.n7.nabble.com/Re-HTMLUnit-2-23-100-CPU-Utilization-and-memory-issues-tp40587p40902.html Sent from the HtmlUnit - General mailing list archive at Nabble.com. |