I am currently looking for JavaScript memory issues for Internet Explorer in my web application. I am running IE9. I want to know whether the scenario mentioned below is actually a memory leak or not.
IE9 takes a tab as a separate process.
It's a Java web application running on Tomcat 6. The Application context (root) of the application is localhost:8080/MyApp
Here's the use case:
- Open Internet Explorer, go to the login page (at the login page the memory in the Windows Task
- Login to the application. The memory increases to 85MB.
- Use the application. The usage involve AJAX calls from single page, navigating to different pages. All this usage is in a single tab. Now the memory consumption increases to 150MB.
- Now we log out of the application back to the login page. The memory usage goes down to 130MB. But ideally it should be equal to the memory usage when we came to login page first time (43MB) and if we login again the memory usage starts from 130MB. This does not happen with Firefox or chrome.
I tried the similar use case of IE for Facebook and Gmail. I am getting similar results.
I want to know if this use case is pointing out a memory leak in the script, or if this is how IE manages the memory of single tab.
I am also looking for memory leak patterns in my code but please let me know about this case.