-
1. Re: scrollableDataTable: memory leaks on rerender
ilya_shaikovsky Sep 1, 2008 7:14 AM (in response to darmstadter)we've fixed a lot of bugs since this version. Use one of the CR of 3.2.2
-
2. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 1, 2008 7:56 AM (in response to darmstadter)thanks for your response. i have tried to do with version CR of 3.2.2, but it doesn't work fine, in litte minutes the memory of FF is increasted 50Mb. i use a4j:push, interval 3 seconds, 5 scrollableDataTable.
-
3. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 2, 2008 4:10 AM (in response to darmstadter)Hello Ilya, can you give me some advices? Them memory is not released, although i close the FF.
-
4. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 2, 2008 6:32 AM (in response to darmstadter)i have done test with version. 3.2.0.SR1 and version 3.2.2.CR. The test environs only with a scrollableDataTable with a4j:push interval :2 sec. The result is: version 3.2.0.SR1 memory increased about 5Mb/Min. version 3.2.2.CR about 4Mb/Min. Only in first minute is increased about 2Mb. The test code is the following:
<rich:scrollableDataTable id="table" height="170px" width="220px" value="#{appBean.items}" var="item" sortMode="single" rows="0" > <rich:column width="104px"> <f:facet name="header"> <h:outputText value="Name"/> </f:facet> <a4j:outputPanel layout="block" style="border:1px solid black"> <rich:dragSupport dragIndicator=":form:indicator" dragType="pidDrag" dragValue="#{item.name}" ondragstart="forceReRenderDropZone()"> <rich:dndParam name="label" value="#{item.name}" /> </rich:dragSupport> <h:outputText value="#{item.name}" /> </a4j:outputPanel> </rich:column> <rich:column width="104px"> <f:facet name="header"> <h:outputText value="Value"/> </f:facet> <div style="margin-top:2px;display:block;"> <h:outputText value="#{item.value}" /> </div> </rich:column> </rich:scrollableDataTable> <a4j:commandButton value="New Item" action="#{appBean.addNewItem}" />
a4j:push<a4j:form> <a4j:region> <a4j:push eventProducer="#{appBean.addPushListener}" interval="2000" ajaxSingle="true" reRender="table" /> </a4j:region> </a4j:form>
java bean:public class AppBean { public void addPushListener(EventListener listener) { synchronized (listener) { if (pushListener != listener) { pushListener = (PushEventListener) listener; } } } public void addNewItem() { while(true) { synchronized (pushListener) { pushListener.onEvent(new EventObject(this)); } try { Thread.sleep(2000); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } }
-
5. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 3, 2008 8:38 AM (in response to darmstadter)Does anyone know, why leaks the memory by reRender through a4j:push? Thanks in advanced.
-
6. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 3, 2008 10:20 AM (in response to darmstadter)the same test with tomahawk-dataTable, there is no memory leak. Can the developer of richfaces fix the bug?
-
7. Re: scrollableDataTable: memory leaks on rerender
nbelaevski Sep 3, 2008 2:52 PM (in response to darmstadter)Hello,
What FF version do you use? -
8. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 4, 2008 3:22 AM (in response to darmstadter)Thanks for your quickly repsonse. I use FF version 2.0.0.16.
-
9. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 4, 2008 3:55 AM (in response to darmstadter)I have found the leaks message with FF leak detection tool.
Leaks in window 0x3949760:
[+] [leaked object] (8977020) = [HTMLAnchorElement]
[ ] type = true
[ ] tagName = true
[ ] protocol = true
[ ] href = true
[ ] target = true
[ ] s_oid = http://www.jboss.com/index.html?module=bb&op=viewtopic&t=141643
[ ] s_oidt = 0
[ ] [leaked object] (32cc738, http://www.jboss.com/scripts/s_code.js, 284-284) = [Function]
[ ] [leaked object] (3949760) = [Window]
[+] [leaked object] (405f6a0) = [HTMLBodyElement]
[ ] addEventListener (32cc7a8) = [Function]
Leaks in window 0x3949760:
[ ] [leaked object] (3949760) = [Window]
after stop the application got the memory alarm message:
Leaks in window 0xea152c0:
Leaks in window 0x3949760:
the memory of javascript object is not released. -
10. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 4, 2008 3:57 AM (in response to darmstadter)I did the test with FF version 3.0.1 Richfaces: 3.2.2.CR2 with tomcat 5.5
-
11. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 4, 2008 10:12 AM (in response to darmstadter)sorry, the memory leaks is possibly caused by the forum. But i have got the memory leak message of the
http://localhost:8080/BSR_CLIENT/a4j/g/3_2_2.CR2org.ajax4jsf.javascript.PrototypeScript.jsf, 224-225) = [Function]
. I don't understand, that it is memory leak, when the FF memory is continuously increased 1Mb/Min. -
12. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 4, 2008 10:15 AM (in response to darmstadter)I have done the test with rich:tree through a4j:push interval 5 sec. The memory of FF is increased continuously also 1Mb/Min. too. The bug of rich:tree is fixed in Jira. The test result is ok?
-
13. Re: scrollableDataTable: memory leaks on rerender
nbelaevski Sep 7, 2008 7:00 PM (in response to darmstadter)Hi,
I've created JIRA task for investigation of this problem: https://jira.jboss.org/jira/browse/RF-4416 -
14. Re: scrollableDataTable: memory leaks on rerender
darmstadter Sep 8, 2008 3:35 AM (in response to darmstadter)Thank you very much.