High Priority: Fix CPU usage and memory leaks

Kristoffer Hendel's Avatar

Kristoffer Hendel

04 Dec, 2011 03:15 PM

Dear Mental Case 2.0 Devs,

On my Core 2 Duo 2.4 GHz / 4GB DDR 2 Ram iMac I am experiencing ridiculous CPU usage and absurd memory leaks. I am not very technical, but I checked the activity monitor after getting fed up with extremely slow UI responsiveness of the app.
Activity Monitor reports 200% CPU usage when I flick from a study card to the next in edit mode.
Also - Activity Monitor is reporting absurd memory uses in the class of 2 to 3 GB!!!!!!

I tried reinstalling and rebooting as the only things I know to do being a very non-technical person.

  1. Support Staff 1 Posted by drewmccormack on 04 Dec, 2011 07:06 PM

    drewmccormack's Avatar

    2-3GB includes virtual memory, which is on disk.
    Mental Case handles a lot of data, particularly if you have media. It is similar in that sense to an app like iPhoto, and our tests indicate memory usage is similar to iPhoto.

    Kind regards,
    Drew

  2. 2 Posted by Kristoffer Hend... on 04 Dec, 2011 07:07 PM

    Kristoffer Hendel's Avatar

    2-3GB is NOT including virtual memory - I checked. Just FYI. and when the app hits above 1,5 GB used it becomes very unresponsive.

  3. Support Staff 3 Posted by drewmccormack on 04 Dec, 2011 07:16 PM

    drewmccormack's Avatar

    Our tests indicate that Activity Monitor is not a true reflection of memory usage. During beta testing, it would often show excessive memory, and when we tested with more advanced developer tools, it simply was not correct. Actual memory usage is much less.
    This must have something to do with how it measures memory, and possibly tricks being played in the Mac OS X system.

    Drew

  4. 4 Posted by Kristoffer Hend... on 04 Dec, 2011 07:23 PM

    Kristoffer Hendel's Avatar

    Hi again

    While it might be OSX playing tricks on me with the report - the app still becomes gradually unusable until closed and reopened. I only have text in my study cards, no media content. Just today, I wanted to flick through 80 cards in a stack to check if "correct choice" was the first answer option after the question on all cards.
    The app lets me flick through the first 40 to 50 or so without lag, but then it begins to be "application not responding", spinning beachball, and it takes forever just to flick to the next card. When this happens, the activity monitor reports excessive memory use (and CPU use).

    I have been studying MCQ's for many hours now, and there have been NO problems at all with usability. It seems to be a problem when authoring the cards.

    Btw - MCQ is the best thing that has happened to this awesome app (: Thank you so much

  5. Support Staff 5 Posted by drewmccormack on 04 Dec, 2011 07:44 PM

    drewmccormack's Avatar

    Hmm, it shouldn't use that much memory for text cards.
    Not sure exactly what could cause it, but your info about it being during editing certainly helps. We will try to look into it and reproduce it.
    Thanks.
    Kind regards,
    Drew

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac