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:
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.
Memory management in JS is beyond your control, really, and finding mem-leaks is rather tricky. There's a lot of myths and misconceptions on the subject, spread all over the web.
I have asked a question on this topic some time ago, though, and I've found out that memory-leaks aren't as common as some people claim they are. Even in IE8!.
If you want to profile a page in IE, and see the memory usage in greater detail, you can use IEJSLeaksDetector for that. On the linked page, you can download version 2.0.1.1...
Also note that logging out will never fully deallocate all the memory that was claimed. Browsers claim memory for all sorts of reasons (like caching images, scripts, ...). The best way to check for leaks is: close the tab, see what effect that has. Close the browser window, check how much memory is deallacted.
No matter what you do, or what browser you use, in today's OS's memory-leaks are inevitable. Some of the leaks are brought on by JS, some aren't.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.