Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.8.2-EE-GA_P01
-
Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
-
Component/s: Framework
-
Labels:None
-
Environment:IE 6
Description
Here are the steps required to reproduce the issue and subsequent increases in memory:
1. open http://localhost:8080/auctionMonitor/
Task Manager (IExplore.exe): Memory Usage ~ 43000 k
2. Click on "Application Link"
Task Manager (IExplore.exe): Memory Usage ~ 52500 k
3. Close Popup Window
Task Manager (IExplore.exe): Memory Usage ~ 47300 k
4. Click on "Application Link"
Task Manager (IExplore.exe): Memory Usage ~ 54000 k
5. Close Popup Window
Task Manager (IExplore.exe): Memory Usage ~ 49200 k
Repeating the last two steps over and over again leads to a steady increase in memory with all browsers. When the browser window is closed, all process memory is released.
Attached is a modified AuctionMonitor.jspx containing the following code to open the new window popup:
<ice:commandLink window.open('index.jsp','secondAppWindow','status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no,top=0,left=0,width=1024,height=738');">
1. open http://localhost:8080/auctionMonitor/
Task Manager (IExplore.exe): Memory Usage ~ 43000 k
2. Click on "Application Link"
Task Manager (IExplore.exe): Memory Usage ~ 52500 k
3. Close Popup Window
Task Manager (IExplore.exe): Memory Usage ~ 47300 k
4. Click on "Application Link"
Task Manager (IExplore.exe): Memory Usage ~ 54000 k
5. Close Popup Window
Task Manager (IExplore.exe): Memory Usage ~ 49200 k
Repeating the last two steps over and over again leads to a steady increase in memory with all browsers. When the browser window is closed, all process memory is released.
Attached is a modified AuctionMonitor.jspx containing the following code to open the new window popup:
<ice:commandLink window.open('index.jsp','secondAppWindow','status=no,resizable=no,scrollbars=no,toolbar=no,menubar=no,top=0,left=0,width=1024,height=738');">
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [5007000000D3SXr] |
Tyler Johnson
made changes -
Attachment | auctionMonitor.jspx [ 12471 ] |
Deryk Sinotte
made changes -
Assignee Priority | P1 | |
Assignee | Mircea Toma [ mircea.toma ] |
Mircea Toma
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mircea Toma
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Mircea Toma
made changes -
Resolution | Fixed [ 1 ] | |
Status | Resolved [ 5 ] | Reopened [ 4 ] |
Harm Gnoyke
made changes -
Attachment | task_manager.png [ 12482 ] | |
Attachment | JS_memory_error.png [ 12483 ] |
Harm Gnoyke
made changes -
Attachment | ie_citrix.PNG [ 12484 ] |
Mircea Toma
made changes -
Attachment | ICE-5942_take2.patch [ 12511 ] |
Ken Fyten
made changes -
Summary | Memory Leak in AuctionMonitor with 1.8.2 P01 | Memory Leak with EE 1.8.2 P01, IE6, and window.open() |
Environment | IE 6, IE 8, FF 3.6 | IE 6 |
Ken Fyten
made changes -
Fix Version/s | 1.8.2-EE-GA_P02 [ 10226 ] | |
Fix Version/s | 1.8.3 [ 10211 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #22349 | Wed Sep 15 11:32:48 MDT 2010 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/bridge/lib/window.js
MODIFY /icefaces/trunk/icefaces/bridge/src/synchronizer.js MODIFY /icefaces/trunk/icefaces/bridge/lib/logger.js MODIFY /icefaces/trunk/icefaces/bridge/src/application.js MODIFY /icefaces/trunk/icefaces/bridge/src/focus.js |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #22350 | Wed Sep 15 11:34:40 MDT 2010 | mircea.toma | |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/bridge/src/connection.async.js
|
Mircea Toma
made changes -
Status | Reopened [ 4 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P1 |
I managed to reproduce IE's increasing in memory usage by using the provided jspx page. Every time a new window is opened there's an increase of ~7Mb in memory usage, once the window is closed there's about ~4Mb of memory released. So, after each window open/close cycle there's an increase in memory of ~3Mb ( = 7Mb - 4Mb).
I took the test a bit further and automated the opening and closing of windows. This way the open/close cycle was run every 7 seconds. After running the test for about 15 minutes I was seeing the memory usage reach a certain maximum threshold, on the machine I was running was 350Mb, once this threshold reach IE would release the memory aggressively to about 200Mb (very similarly to a garbage collection). From then on again the memory usage will increase gradually until reaching the threshold and going back again.
I was able to run the window ope/close cycle every 7 seconds for hours without having IE freeze or crash, every time repeating the pattern described above.
So, in conclusion I believe there is no real memory leak but just a false alarm due to IE's memory usage behavior. Actually we've seen this behavior in the past, such as for DOM updates, which prompted us to verify if really there is a memory leak by pushing IE to reach the memory threshold.