Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Click 1.3.1 / 1.4RC2
Description
Table#toString() allocate memory for HtmlStringBuffer.
int bufferSize =
(getColumnList().size() * 60) * (getRowList().size() + 1);
However, when Table is paginated, Table control allocates excessive memory.
I think if the page size is specified, the initial buffer size should be calculated by the page size:
int bufferSize =
(getColumnList().size() * 60) * (getPageSize() + 1);
^^^^^^^^^^^^^
I'm using Table with large rows. So sometimes, it causes OutOfMemory by this issue.