[Issue 139] New - DWR DOM usage

View: New views
3 Messages — Rating Filter:   Alert me  

[Issue 139] New - DWR DOM usage

by dmitry_timin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://dwr.dev.java.net/issues/show_bug.cgi?id=139
                 Issue #|139
                 Summary|DWR DOM usage
               Component|dwr
                 Version|current
                Platform|PC
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|www
             Assigned to|joe_walker
             Reported by|dmitry_timin






------- Additional comments from dmitry_timin@... Tue Aug 14 02:21:00 +0000 2007 -------
Hello,
we're using DWR with Tomcat 5.5 to create a webapp which shows lots of
information in realtime. This app is meant to be running for a long time
(ideally never to be shutdown). All the data is updated from server side every 2
seconds. Javascript from client side also sends requests to server every minute.
Discovered that after 24 hours IEXPLORE.EXE process takes about 250M of memory
and CPU goes to appr. 10-30%.
Looking at DOM model in DOMExplorer I see many
<DIV><IFRAME id=dwr-if-poll-2780>...
<FORM id=dwr-form>..
previous entry is dwr-if-poll-2778 and so on till zero. so it seems that these
entries are never released and DOM increases all the time..
After 2 days of working javascript fails to find any DOM elements by ID and
nothing works any more.
Another feature - when javascript doesn't send requests to server every minute -
everything seems fine. I still have <DIV><IFRAME id=dwr-if-poll-xxx><FORM
id=dwr-form> but only one instance (the last one) and number xxx increases by 1
(it increases by 2 in previous example).
Not sure if it's a bug or I'm doing something wrong..
Java code to update page (every 2 seconds for every control on page):
      Util util = new Util(ctx.getScriptSession());
      util.addFunctionCall("setValue", id, "" + value);
Javascript code to request server (once every minute):
        dwrForm.someAction({
                callback:function(dataFromServer) { ... },
                timeout:10000,
                warningHandler:function(error) { ... },
                errorHandler:function(error, exception) { ... }
Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 139] DWR DOM usage

by dmitry_timin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://dwr.dev.java.net/issues/show_bug.cgi?id=139






------- Additional comments from dmitry_timin@... Tue Aug 14 03:46:22 +0000 2007 -------
page DOM seems to be updated every minute if look at DOMExplorer.
if during this minute between updates there were some server calls from
Javascript  then previous <DIV><IFRAME> and <FORM> elements are not deleted,
when no server calls occur previous elements (1 DIV and 1 FORM) are deleted

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...


[Issue 139] DWR DOM usage

by joe_walker :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://dwr.dev.java.net/issues/show_bug.cgi?id=139



User joe_walker changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |LATER
--------------------------------------------------------------------------------




------- Additional comments from joe_walker@... Fri Aug 24 15:23:00 +0000 2007 -------
See: http://getahead.org/bugs/browse/DWR-147

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

LightInTheBox - Buy quality products at wholesale price!