6

I'm trying to degub a fairly large application written in jquery mobile and am struggling to pin down a suspected memory leak. 

I have been criss-crossing through the app running all functions up and down. all the while server memory usage is ok and all but one page are working fine.

On the page in question (widget heavy product search  & order page, using JQM photoswipe, multiview plus a bunch of other plugins) all works well for a while until most of the buttons stop working. 

Buttons not reacting tells me I need to check my jquery app manager, which also handles all event bindings. problem is, it's about 90k and I don't really know where to start, so

Question:   are there any tools that can check Jquery/Javascript for potential memory leaks? What else could I do to try and pin down the problem?

Thanks for some insights

3
  • Besides the buttons not working, what evidence do you have that the problem is a memory leak? Have you looked in the error console for script errors? Have you set a breakpoint in the event handler for the button? Commented Sep 26, 2012 at 23:33
  • 2
    You're probably looking for stackoverflow.com/questions/5028479/… Commented Sep 26, 2012 at 23:36
  • there are no errors in firebug. actually the app/page is running smooth on dekstop, while on ipad1+3, I'm running into the page stall. I'm using set a bunch of consoles, also inside the event bindings, but once the page stalls, they are not firing anymore either. Commented Sep 26, 2012 at 23:37

1 Answer 1

1

You might want to check out some of what the Chrome Developer Tools has to offer. I've done memory profiling and identified some memory leaks that way:

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks. I will try and have a look!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.