aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Needs more and more RAM over time ...  (Read 3864 times)

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Needs more and more RAM over time ...
« on: December 01, 2010, 12:17:40 PM »

Hi,

my amule (actual version) running on windows needs more and more RAM over running time. It starts at about 70 Megs RAM and 120Megs virtual Storage, but after some hours this leads to 600, 700 MB RAM, my 1Gig-System is swapping then and i have to stop Amule, after a restart it runs for some hours, then this may happen again.

Any hints?

Thanks a lot, regards

Killozap
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Needs more and more RAM over time ...
« Reply #1 on: December 01, 2010, 07:11:56 PM »

Happens to me too from time to time. I suspect KAD poisoning.
Do you have KAD enabled? Try to run aMule with only using the ED2K network.
Logged

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #2 on: December 01, 2010, 09:23:27 PM »

So, the ED2K-Network ist somehow poisoned by spam-Servers that spam all search results, the KAD-network ist very good with search results.

So, what is poisoning me in this case? Can it help to kill KAD for some time and then reactivate it?

Thanks a lot and kind regards

Killozap
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Needs more and more RAM over time ...
« Reply #3 on: December 02, 2010, 05:27:12 PM »

So, what is poisoning me in this case? Can it help to kill KAD for some time and then reactivate it?
There are fake clients that send bogus information, which is filling the aMule map of available nodes.
This leads to more and more heap memory being allocated for the bogus data. I believe Stu is working on some code to avoid this, but the succes rate is not 100%.

If you deactivate KAD this can't happen. But the moment you activate it again, you are vulnerable to this kind of behaviour. So there's no way the user can avoid it.
Logged

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #4 on: December 02, 2010, 06:22:21 PM »

Many people only share using KAD, i don't want to losses them :)

Thanks a lot, a new start every 12 hours is working for me now ...
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Needs more and more RAM over time ...
« Reply #5 on: December 02, 2010, 09:18:05 PM »

I believe Stu is working on some code to avoid this
I only have a concept (SQLite database instead of keeping all the gunk in memory). I haven't written a line of code yet.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #6 on: December 02, 2010, 10:17:14 PM »

I was missing two buttons in amule for this scenario or other things:

1.) Stop all activity,  restart as if new started, so the memory will be cleared ...

2.) Start emule without beginning any connections, so someone is able to sort all downloads, prioritize all files and so on, then a bitton to start over
Logged

^marcell^

  • Developer
  • Hero Member
  • *****
  • Karma: 28
  • Offline Offline
  • Posts: 524
Re: Needs more and more RAM over time ...
« Reply #7 on: December 03, 2010, 07:29:15 AM »

I was missing two buttons in amule for this scenario or other things:

1.) Stop all activity,  restart as if new started, so the memory will be cleared ...

2.) Start emule without beginning any connections, so someone is able to sort all downloads, prioritize all files and so on, then a bitton to start over

@ 1.)
There's a button to bootstrap the known clients from a nodes.dat file at the top in the KAD tab.

@ 2.)
You can disable the "auto connect on startup" feature in the preferences. Then you can connect by clicking the appropriate button in the networks section.
Logged

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #8 on: December 03, 2010, 09:38:17 AM »

@1: I will try this

@2: Does not work when starting an emule that has stopped short time before. The emule will start to upload when the clients ask for stuff, no matter, if you click the connect tab or not ...
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Needs more and more RAM over time ...
« Reply #9 on: December 03, 2010, 09:28:15 PM »

I don't think 1) will work. You could try:
- disconnect
- delete key_index.dat, load_index.dat, src_index.dat
- connect

2) Disconnected only means you can't search and people can't find you. If they already have your IP they still can connect to you. There is no way to turn this off. Why would you want to turn off your connection for the activities you described?
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #10 on: December 05, 2010, 12:48:54 PM »

I am using the windows-version and have difficulties to find any config-files of amule. They are not stored in the program-directory, i can't find them in the windows-document-directory.

Where are they stored?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Needs more and more RAM over time ...
« Reply #11 on: December 05, 2010, 02:13:40 PM »

C:\Users\YourName\AppData\Roaming\aMule (Windows 7)
You can also look in Preferences/Directories . If you didn't change the paths they are under your config dir.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Killozap

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 19
Re: Needs more and more RAM over time ...
« Reply #12 on: December 05, 2010, 02:21:35 PM »

OK, have found them ... Will try your tip later ...

I don't have any config-dir-settings in Preferences-Directories, i can only choose incomming and temp-directory ...

Thanks and kind regards

Killozap
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: Needs more and more RAM over time ...
« Reply #13 on: December 05, 2010, 02:30:11 PM »

I don't have any config-dir-settings in Preferences-Directories, i can only choose incomming and temp-directory ...
Correct. But since temp/incoming is by default IN the  Preferences-Directory, you can locate it this way.  :)
You can also make a directory "config" in the directory where you have put amule.exe and move everything there. Then it will use this one. (You will have to change the temp/incoming dir though.)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon