aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: [1] 2 3 4

Author Topic: Active connections limit reached with amuled  (Read 20097 times)

yoyoio

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Active connections limit reached with amuled
« on: March 22, 2005, 08:57:28 PM »

First of all, thanks to all amule developpers, good work:)

 My settings. UL 50 kb/s DL 120 kb/s max sources per file 1000, max connections 500

OS gentoo with iptables.

 I'm testing amuled and these are the bugs that I've  found.

  Upload works very well with default speed value for client connection (3kb), but if I set to a higher value (8kb for example), the upload seems to be very unstable, no upload at all (clients in upload but showing 0kb/s) or uploading only two clients at 20kb/s and the other ones 0 kb/s or 0.5 kb/s...I mean, graphs not showing a straight line.


 When I put something to download, the active connections start growing until they reach their limit showing a straight line at 500, and not accepting new connections, after a few  days, there are no clients in the upload queue and downloads stops (no connection with clients), but the active connections graph still show a straight line at 500.

netstat shows stablished connections (500 more or less from amuled tcp port)

I think that this is the same problem http://forum.amule.org/thread.php?threadid=5530&sid=

BTW, amule works fine with these settings.

aMule-CVS-20050320 and older.

P.S: sorry for my English.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Active connections limit reached with amuled
« Reply #1 on: March 22, 2005, 09:24:20 PM »

well 1st of all max sources per file 1000 and max connections (overall) 500  does not make a lot of sence dont you think?

so maybe switch that and see if it does any better
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: Active connections limit reached with amuled
« Reply #2 on: March 22, 2005, 10:03:51 PM »

I would like to know ethereal evidence for this case.
How match of actual upload/download stream is taking place ? How many syn+ack packets are coming out (i.e.  number of accepted connections) ?
Logged

yoyoio

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: Active connections limit reached with amuled
« Reply #3 on: March 22, 2005, 10:29:54 PM »

Thanks for the reply Stefanero.

I set to 1020  a few hours ago and still growing.

stats shows:

aMulecmd$ stats
 > Conectado a Razorback 2 [195.245.244.243:4661] con IDAlta
 > Descargado:  22 KB/seg
 > Subida:      50 KB/seg
 > Clients in queue:    3000
 > Total sources:       301
aMulecmd$


BTW, the files that I am downloading only have 20 sources more or less.

14 /  15 (0)+10
9 (1)+10    
6 /  7 (1)+22    
32 /  33 (1)+12    
40 /  45 (1)+1    
24 /  25 (0)+1
22 /  25 (0)+7
27 /  29 (0)+13
38 /  42 (0)+1
65 /  68 (1)+1

With amule (not amuled), the graphs shows 200 con. more or less, only reach 500 conn. when amule starts, and never reach limit for a long time

and

netstat -an|grep MyIP:aMulePort|grep ESTABL|wc -l
638

only uploading this behaviour doesn't happen.

I hope this information help.
Logged

yoyoio

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: Active connections limit reached with amuled
« Reply #4 on: March 22, 2005, 10:36:29 PM »

lfroen, i still don't have ethereal emerged.
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #5 on: March 22, 2005, 10:54:57 PM »

This seems to be the same thing I posted and I would like to help. I've just installed ethereal but I never used before. What exactly do you need? A log file of what it captures?
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #6 on: March 23, 2005, 05:17:26 AM »

Well, I want to know: doesn all connection are in "established" state ? Or it is some "wait" like CLOSE_WAIT ?
Regarding ethereal: I want trace itself, but you can limit data in each packet to let's say 64 bytes.
Than send it together with you ip to lfroen@gmail.com and I will try to see what's wrong with daemon. Thank you for report.
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #7 on: March 23, 2005, 10:20:33 AM »

Here you have what netstat says about connections:

Code: [Select]
# netstat -putan | grep amuled | wc -l
330

# netstat -putan | grep amuled | grep ESTABLISHED | wc -l
326

# netstat -putan | grep amuled | grep CLOSE_WAIT | wc -l
2
This time is taking longer to reach the limit but it is very close. Now I'm gonna try with ethereal.
« Last Edit: March 23, 2005, 10:21:35 AM by BeFalou »
Logged

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Active connections limit reached with amuled
« Reply #8 on: March 23, 2005, 12:17:15 PM »

Quote
Originally posted by stefanero
well 1st of all max sources per file 1000 and max connections (overall) 500  does not make a lot of sence dont you think?

so maybe switch that and see if it does any better

Uhm, why not? Depending on the number of files he is downloading (and the _total_ number of sources found and used) this setup can make quite some sense  ;)
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Active connections limit reached with amuled
« Reply #9 on: March 23, 2005, 01:05:03 PM »

think about it, it does not make any sence.

how can you have more sources per file, then the overall amount of sources?
and teh more files you dontload the worse it gets, since the "last" files will have no sources left at all
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."

thedude0001

  • evil bugfinder ;)
  • Hero Member
  • *****
  • Karma: 6
  • Offline Offline
  • Posts: 827
Re: Active connections limit reached with amuled
« Reply #10 on: March 23, 2005, 01:12:51 PM »

number of used sources != number of connections used at any given moment.

If I find a source I connect to it, say "hello, here I am, I want this file, which is my queue number?", get the answer from the other client and then the connection is being closed. And only after x minutes (~30 minutes in emule IIRC, no idea about amule) I reconnect to this source and say "Hi, I'm still there, this file, which is my QR?" and disconnect again after getting these infos...

As a real life example:

I have max sources per file = 400, max connections = 230 and 30 files in my download.
This makes a total of ~3500 sources in my case (some quite rare files) and I have an average concurrent connections of ~100...
Logged
Das Schlimme auf dieser Welt ist
daß die Dummen so selbstsicher sind
und die Gescheiten so voller Zweifel.

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #11 on: March 23, 2005, 03:12:17 PM »

Quote
and teh more files you dontload the worse it gets

stefanero is right. max number of total sources should be > sources per file. Otherwize this configuration have no sense.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Active connections limit reached with amuled
« Reply #12 on: March 23, 2005, 07:15:37 PM »

I think I fixed the bug now. Check next tarball (not yet available).
Logged

yoyoio

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: Active connections limit reached with amuled
« Reply #13 on: March 23, 2005, 08:08:21 PM »

You're more faster than speed of light   :baby:, I've just returned from work and the bug is fixed   8o

Ethereal emerged  in case of need it again.

Thank you to all amule developpers.

Kry, parece que te sabes el codigo de memoria :)
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Active connections limit reached with amuled
« Reply #14 on: March 23, 2005, 09:01:55 PM »

Quote
Originally posted by yoyoio
Kry, parece que te sabes el codigo de memoria :)

That's because it's true :P
Logged
Pages: [1] 2 3 4