View previous topic :: View next topic |
Author |
Message |
Nuisance-Value n00b

Joined: 12 Apr 2005 Posts: 23
|
Posted: Thu Jan 26, 2006 9:33 am Post subject: Mldonkey - Taking far too long to stop [solved] |
|
|
I'm running the mldonkey server as a daemon service on a gentoo box.
When I go to stop the service:
Code: |
/etc/init.d/mldonkey stop
|
it takes about 3-4 minutes to stop.
Why does it take so long?
Is there any wrong here?
Is there something I can do to speed the closing of the daemon?
As a side question what is the differnence between mlnet and mldonkey?
Last edited by Nuisance-Value on Fri Feb 17, 2006 6:02 pm; edited 1 time in total |
|
Back to top |
|
 |
bejo n00b

Joined: 23 Nov 2005 Posts: 7
|
Posted: Thu Jan 26, 2006 12:26 pm Post subject: |
|
|
Hi,
i had the same "problem". For me it was the number of IP-Connections that were open at that time. The mldonkey Daemon only stops
if every connection has been closed.
Try to look at the number of connections that are open while mldonkey is running and see them slowly decreasing while
you stop the daemon.
Code: | watch netstat -atnp | wc -l |
If that is the case for you then you can use the optimizations i used:
I have changed several timeout values under
Code: | /proc/sys/net/ipv4/ |
The most important one are these:
Code: | /proc/sys/net/ipv4/tcp_fin_timeout
/proc/sys/net/ipv4/tcp_keepalive_time |
Some of them are explained here:
http://www.faqs.org/docs/securing/chap6sec75.html
If you decrease the timeouts, the connections can be closed faster. |
|
Back to top |
|
 |
Nuisance-Value n00b

Joined: 12 Apr 2005 Posts: 23
|
Posted: Thu Jan 26, 2006 5:14 pm Post subject: |
|
|
For me it stops instantly if I run it in a terminal window and ctrl c it.
So it points to a problem with the init.d shut down script, not a issue with the connection, doesn't it? |
|
Back to top |
|
 |
janitor n00b


Joined: 27 Feb 2004 Posts: 11 Location: Hamburg, Germany
|
Posted: Wed Feb 15, 2006 7:15 pm Post subject: |
|
|
Has anybody found a solution yet? Here, it doesn't stop at all.Bloody annoying when I try to shut down my computer...
If I watch the number of connections the way you suggested, bejo, it stays at 35 and doesn't decrease at all (at least not in 20 minutes) _________________ Nothing changes but endurance |
|
Back to top |
|
 |
janitor n00b


Joined: 27 Feb 2004 Posts: 11 Location: Hamburg, Germany
|
Posted: Wed Feb 15, 2006 7:32 pm Post subject: |
|
|
Remerging mldonkey fixed it for me. _________________ Nothing changes but endurance |
|
Back to top |
|
 |
Nuisance-Value n00b

Joined: 12 Apr 2005 Posts: 23
|
Posted: Fri Feb 17, 2006 6:01 pm Post subject: |
|
|
I actually found the problem to be a port wasn't open for mldonkey. If you get this problem, make sure all the ports required are open. |
|
Back to top |
|
 |
spiralvoice Apprentice

Joined: 09 Mar 2004 Posts: 238
|
Posted: Sun Feb 26, 2006 11:13 pm Post subject: Re: Mldonkey - Taking far too long to stop [solved] |
|
|
Nuisance-Value wrote: | As a side question what is the differnence between mlnet and mldonkey? |
When you "make" MLDonkey mlnet is build, its a binary with all network modules activated
by ./configure are linked into. "make mldonkey" creates a binary with EDK module only,
same is possible for mlbt, mlgnutella, mlfasttrack, mlfiletp |
|
Back to top |
|
 |
spiralvoice Apprentice

Joined: 09 Mar 2004 Posts: 238
|
Posted: Wed Mar 22, 2006 9:14 am Post subject: |
|
|
To improve MLDonkey performance activate USE flag "threads". |
|
Back to top |
|
 |
|