From: adam a. <aaf...@gm...> - 2017-02-03 08:03:00
|
Hi, I've also observed higher CPU usage since mouseover event started to clean computed stylesheet cache (after looking into commits I think it is connected with :hover pseudoclass handling). I tried to modify code to clean only some elements from cache, but this simply doesn't worked when application has complex CSS. Maybe this is same issue (I haven't yet registered a bug)? Adam 2017-02-02 12:31 GMT+01:00 manojsakarwal <man...@in...>: > 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. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Htmlunit-user mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlunit-user > |