aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: A mem-leak related to OnlineSig identified (in wx)  (Read 1722 times)

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
A mem-leak related to OnlineSig identified (in wx)
« on: March 18, 2005, 12:21:18 PM »

I have identified a memory leak in wx that affects aMule when Online Signature is enabled.  This may account for at least some of the recent reports of aMule using more and more memory over time.

I have submitted a patch to the wxDevs.  It is here.

In the meantime, you can disable Online Signature and restart aMule to recover the leaked memory.


Edited to suggest: people who have been experiencing high memory usage can check if this is the cause by interrupting amule with gdb at a time that amule is using lots of memory and issuing the commands:

print ((CamuleGuiApp &)wxGetApp()).amulesig_out.m_aTypes
continue

(For amuled, use "CamuleDaemonApp" instead of "CamuleGuiApp".)

The value of m_nSize should be about 10 or 15.  If it's in the millions, then this bug is eating a lot of memory (m_nSize * 4 bytes).
Logged

skolnick

  • Global Moderator
  • Hero Member
  • *****
  • Karma: 24
  • Offline Offline
  • Posts: 1188
  • CentOS 6 User
Re: A mem-leak related to OnlineSig identified (in wx)
« Reply #1 on: March 18, 2005, 05:28:20 PM »

Hmm...that's good to know, ken. I'll try it, since I alway enable online sig, even if not used.

Regards.
Logged