This may not be the problem of HtmlUnit.
But in some cases, this will be the preblem.
HtmlTable,HtmlTableRow and other table related classes have getCells or getRows method.
these method return an unmodifiableList.
this list is refered by private variable of that class.
but the private variable only referes to unmodifiableList.
So there is no way to free the members of this list.
There is another problem in JavaScriptEngine (but this must be the spec of this class ?).
in JavaScriptEngine,
there is no method to delete the information registerd in pageInfos_.
if you navigate many pages which has large table parsing each table data,
you will observe remarkable growth of heap size.
Regards.
Noboru Sinohara
|