From: David M. G. <mic...@gm...> - 2013-12-22 14:02:37
|
Hi all, I wanted to see what the memory usage of htmlunit is: I had the following program: String url = "http://www.redalyc.org/articulo.oa?id=231018652001"; WebClient client =new WebClient(); HtmlPage page = client.getPage(url); List<HtmlAnchor> anchors = page.getAnchors(); for (HtmlAnchor anchor: anchors ) { System.out.println(anchor.getTextContent()); } When running it with jvisualvm i saw that it had a peek of about 150 MB. This lead me to the question what the recommended heap size is when running htmlunit. This is important when running many htmlunit processes in parallel. Thanks, David |