5 Replies Latest reply: Feb 6, 2013 11:05 AM by Ralph Johns (UK)
csecure Level 1 Level 1 (0 points)

There seems to be some bug in the Messages app which causes it to use several GB of memory.  I notice when my whole system slows down, and then I open up activity monitor, see Messages mem consumption at 2-6GB, force quite, and then things go back to normal. 

 

My temporary solution is to fully quit the app when I'm not using it.  But that seems like a bad solution, sometimes I forget etc.

 

I'm running 10.8.2, macbook pro, 8gb of mem.  I've submitted a crash dump to apple.

 

----

 

This past week my wife (Macbook air, 4gb mem, 10.8.2) started seeing strange messages about memory running low at the system level.  I didn't fully explore, but noticed she didn't have any disk space left, then did a "sudo du -h -d1 /" to check where the big files were and traced it to a HUGE swap file.  40ish GB.  By that time I had already killed a few processes (including messages) and things started to go back to normal, a few GB returned to being free.  Doing a reboot freed up all 40GB of consumed swap space.

 

While I can't say for sure, this seems like the Messages app going out of control and consuming a large amount of memory.  And that mem getting stuck out in the swap space.

 

----

 

That being said - I can't find any other reference to this problem?  Has anyone else noticed this?  Is there some solution? 

 

One final note - we are only using iMessage (no other protocol) and sync with our phones.

 

Any advice/references are welcome


MacBook Pro, OS X Mountain Lion (10.8.2)
  • 1. Re: Messages Out of Control Memory Usage
    csecure Level 1 Level 1 (0 points)

    As a quick followup - I did find this one reference in the sidebar after posting my message.

     

    https://discussions.apple.com/thread/4209012?start=15&tstart=0

     

    Although it's not exactly helpful.  It is a reference to others having the same problem. 


    Any new information from apple?  Will they try and fix this at some point?

  • 2. Re: Messages Out of Control Memory Usage
    Ralph Johns (UK) Level 9 Level 9 (67,505 points)

    Hi,

     

    I also seem to remember reading onw other post about this but strangely not the one you linked to.

     

    I seems to recall that the person just added more RAM and solved it that way.

    1) It is relatively expensive for a fix

    2) he had space to add more RAM which not everyone can do.

     

    As the issue does not happen in iChat it would seem that the iMessages side is more likely to be the cause as you suggest.

     

    IMAgent does not handle the iMessages login (So the other thread may have a different issue)

    A more global view is that something with the messaging apps overall is the key item and it is showing as being related to different apps at different times

     

    For example vcencoder is the video production framework that gets started in iChat or in Messages "iChat Style" Video chats  (those to Buddies rather than Contacts).

    The vcencoder is also used by  Facetime  (it's why the camera can do FaceTime and "iChat Style" video chats at the same time is some OS versions).

     

    For myself, I quit all apps and Shut Down the computer each evening and I have not seen this.

    I would be interested to see if Sleep and Wake cycles  seem to increase the Swap files.

    I am wondering if a part or the Messages app cannot re-establish a connection at Wake and starts another internal thread leaving one in a loop.

     

     

    3Sigcopy2.png
    9:54 PM      Tuesday; February 5, 2013


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • 3. Re: Messages Out of Control Memory Usage
    csecure Level 1 Level 1 (0 points)

    The last statement sounds like a reasonable guess.  When it happened more often to me (before I more reliably quit Messages app), I think it was highly correlated to when I shut/open my lid. 

     

    So I guess another question could be - is there some official channel to use so that apple is more likely to resolve such an issue?  Or is just crossing my fingers as effective as any other process? 

  • 4. Re: Messages Out of Control Memory Usage
    Ralph Johns (UK) Level 9 Level 9 (67,505 points)

    HI,

     

    As Messages is built on the iChat engine I have been suggesting people feedback here http://www.apple.com/feedback/ichat.html

     

    Apple use a drop down for the iChat Version number and another for the OS version.

    They have done s better job more recently on the OS front but are next to useless on the iChat Version Numbers.

    Enter your info in the Free text area.

     

    You will not get a reply.

    Any response also will not be instant as it has to filter through the Developer's testing cycle, but I have found is relatively effective in the past.

    I tend to List any Thread here as additional info.

     

    It did used to be that with faster processors some apps could "restart" at Wake faster than a network and therefore Internet access could be re-established and would fail to reconnect.

    It would seem there is at least some from of either delay or "retry"  built-in now.

    I rarely use Sleep myself (Computerwise)

     

    3Sigcopy2.png
    10:09 PM      Tuesday; February 5, 2013


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • 5. Re: Messages Out of Control Memory Usage
    Ralph Johns (UK) Level 9 Level 9 (67,505 points)

    4thanx.gif For the Points  1helpful.png

    3Sigcopy2.png
    7:05 PM      Wednesday; February 6, 2013


    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

     

      iMac 2.5Ghz 5i 2011 (Mountain Lion 10.8.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

    "Limit the Logs to the Bits above Binary Images."  No, Seriously