Memory Leaks
------------
Key: WICKET-2942
URL: https://issues.apache.org/jira/browse/WICKET-2942
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 1.4.8
Environment: Winows XP SP3 en, Apache Tomcat 6.0.20, Firefox 3.6.6, IE8
Reporter: Mishelle Bonq
Even in simple example, which uses AjaxSelfUpdatingTimerBehavior memory leaks
in both browser occurs.
Tested example:
1. java file:
import org.apache.wicket.ajax.AjaxSelfUpdatingTimerBehavior;
import org.apache.wicket.markup.html.WebMarkupContainer;
import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.repeater.RepeatingView;
import org.apache.wicket.util.time.Duration;
public class TestPage extends WebPage {
public TestPage() {
WebMarkupContainer table = new WebMarkupContainer("testTable");
add(table);
RepeatingView rows = new RepeatingView("row");
table.add(rows);
for (int i = 0; i < 10000; i++) {
WebMarkupContainer item = new WebMarkupContainer(rows.newChildId());
rows.add(item);
RepeatingView cols = new RepeatingView("col");
item.add(cols);
for (int j = 0; j < 15; j++) {
WebMarkupContainer item2 = new
WebMarkupContainer(cols.newChildId());
cols.add(item2);
item2.add(new Label("value", "test valueeeeeeeeeee"));
}
}
table.add(new AjaxSelfUpdatingTimerBehavior(Duration.seconds(5)));
}
}
2. html file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd">
<body>
<div wicket:id="testTable">
<table>
<tr wicket:id="row">
<td wicket:id="col">
<div wicket:id="value"></div>
</td>
</tr>
</table>
</div>
</body>
</html>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.