Memory leaks on Firefox addons
I have an开发者_开发技巧 addon, which is pretty big, and I need to understand some things...
- What causes memory leak on a Firefox addon?
- How can I find what is causing the leak?
- How can I fix the leak?
The addon adds some elements on the page, request parts of the page and update the DOM. The memory increases each time I reload the page, and the memory is not released even after closing the tab.
Here is a Firefox extension which can catch some types of memory leaks. There is more documentation on debugging leaks here, but it's a little hard to read.
精彩评论