aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: memory leak  (Read 4126 times)

BQuick

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
memory leak
« on: July 04, 2005, 07:14:50 PM »

Hi,i m Linux newbie,using Kanotix.I left amule open during the night,in the morning i had 90 MB RAM free out of 1 Gig that i have...Same is happening now again.Used RAM at 680 and rising steadily.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: memory leak
« Reply #1 on: July 04, 2005, 08:35:58 PM »

can you post
amule --version

thnx
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stsp

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: memory leak
« Reply #2 on: July 11, 2005, 07:08:01 PM »

Re: aMule 2.0.3 memory leak

> can you post
> amule --version
By the way, the friend of mine keeps complaining to me
about that problem every day. He works around it by
restarting amule every few days. He says that 2.0.3
eats up all the memory+swap in 3 days, while 2.0.1
did that in a week, and those old (stable) 1.x didn't
have that problem at all. But it may be (and even more
likely, IMHO) the fault of wx too - between 2.0.1 and 2.0.3
he upgraded wx from 2.5 to 2.6 from CVS. (built as wxGTK
on GTK2)
I have only the remote connection to his machine, but
if you need some specific info on that problem, I, as well,
can try to get it out.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: memory leak
« Reply #3 on: July 11, 2005, 07:16:30 PM »

It's wx + GTK2 fault.
Logged

stsp

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: memory leak
« Reply #4 on: July 11, 2005, 07:35:56 PM »

> It's wx + GTK2 fault.
Hmm? Could you please be a bit less terse, or at least
maybe you can refer me elsewhere for some info on that?
Logged

stsp

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: memory leak
« Reply #5 on: July 11, 2005, 07:45:01 PM »

I mean, if I want to find a work-around, that info is
definitely not enough. Where exactly the problem is,
or how it can be avoided? It is just that the aMule
is almost useless in that state (restarting every few days
is no good), so finding a work-around looks unavoidable
for me as an user.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: memory leak
« Reply #6 on: July 11, 2005, 08:44:11 PM »

there is no workaround to the mem leak within gtk2 and wxGTK...
those two libs dont work so great together, so the mem leaks...

gkt1 is better or mem usage
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

lfroen

  • Guest
Re: memory leak
« Reply #7 on: July 12, 2005, 02:10:01 PM »

imho wx2.6 + gtk2 don't suffer from this
Logged

stsp

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: memory leak
« Reply #8 on: July 12, 2005, 07:42:48 PM »

stefanero:
> there is no workaround to the mem leak within gtk2 and wxGTK...
> those two libs dont work so great together, so the mem leaks...
With GTK being, AFAIK, the primary target of wx...
Not a best days for aMule, I'd say:)

> gkt1 is better or mem usage
I really can't move to gtk1. I know it used to work better with
wx, but now I think it is pretty much dead (correct me if I am
wrong). Really, why do you think the wxUniversal is not an
option to try?

lfroen:
> imho wx2.6 + gtk2 don't suffer from this
Any ideas how the one can figure this out? If I create, say,
the memprof logs (and attach them here), will this help?
Or some other tools to try?
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: memory leak
« Reply #9 on: July 12, 2005, 08:35:40 PM »

a nice mem  tool is valgrind,
 and there is some help on valgrind on wiki.amule.org

about the mem bug with wxGTK - gtk2

well tis not our fault that wxWidgets and gkt2 dont work so great together...not much we acn do about it...
about the wxUniversal question, if you link wxUniversal against gtk2 its no difference
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

stsp

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: memory leak
« Reply #10 on: July 12, 2005, 09:09:59 PM »

> and there is some help on valgrind on wiki.amule.org
Thanks for the pointer.

> about the wxUniversal question, if you link wxUniversal against gtk2 its no difference
I thought it links with Xlib only, so that to provide all
the widgets itself. I.e. AFAIK it doesn't need GTK at
all - is this wrong?
Logged