Showing posts with label memory-leaks. Show all posts
Showing posts with label memory-leaks. Show all posts

Wednesday, May 23, 2012

Creating a memory leak with Java


I just had an interview, and I was asked to create a memory leak with Java. Needless to say I felt pretty dumb having no clue on how to even start creating one.

Simple jQuery Ajax call leaks memory in Internet Explorer


I created a web page that makes an Ajax call every second. In Internet Explorer 7, it leaks memory badly (20 MB in about 15 minutes).

Monday, May 14, 2012

Android memory leak example from Google I/O


I just had a look at the google io video "memory management for android". Slides are available here http://dubroy.com/memory_management_for_android_apps.pdf . The memory leak example is on slide 36.

Friday, May 4, 2012

Sunday, April 8, 2012

When Profiling Javascript in Chrome how do I know I"ve handled Memory Leaks?



I've been working on a game in for HTML 5 using the canvas tag, and I've build up quite a code base to cover my requirements. I also want to make sure I'm covering up all my memory leaks.





I have doubts I'm doing it correctly because the feedback I'm getting from Chrome's task manager and profiling tools seem to suggest my cleanup is having no effect in the end.





Here's an image so you can see what I mean:





enter image description here





So as you can see, once I do my cleanup memory usage just freezes and doesn't drop. Is this a memory leak?





When I ran my webpage in the Profiler and checked the heap before and after cleanup it does appear to remove all the references to my objects (and they disappear) but my usage only drops by only a few kilobytes leaving about 1.3mb of arrays, strings, and other objects behind. Is it impossible to catch all this or is there something majorly wrong?





Thanks.



Source: Tips4all

Sunday, January 15, 2012

Memory-leak android using arrays and files


I'm developing a dictionary using *.txt files in /raw directory, also I have a history (current 18 entries).

Thursday, January 12, 2012

jQuery DOM manipulation memory leak in IE


We found a serious memory leak on IE when doing DOM manipulation. Basically, we were doing this: