Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Mldonkey - Taking far too long to stop [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Nuisance-Value
n00b
n00b


Joined: 12 Apr 2005
Posts: 23

PostPosted: Thu Jan 26, 2006 9:33 am    Post subject: Mldonkey - Taking far too long to stop [solved] Reply with quote

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
View user's profile Send private message
bejo
n00b
n00b


Joined: 23 Nov 2005
Posts: 7

PostPosted: Thu Jan 26, 2006 12:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Nuisance-Value
n00b
n00b


Joined: 12 Apr 2005
Posts: 23

PostPosted: Thu Jan 26, 2006 5:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
janitor
n00b
n00b


Joined: 27 Feb 2004
Posts: 11
Location: Hamburg, Germany

PostPosted: Wed Feb 15, 2006 7:15 pm    Post subject: Reply with quote

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
View user's profile Send private message
janitor
n00b
n00b


Joined: 27 Feb 2004
Posts: 11
Location: Hamburg, Germany

PostPosted: Wed Feb 15, 2006 7:32 pm    Post subject: Reply with quote

Remerging mldonkey fixed it for me.
_________________
Nothing changes but endurance
Back to top
View user's profile Send private message
Nuisance-Value
n00b
n00b


Joined: 12 Apr 2005
Posts: 23

PostPosted: Fri Feb 17, 2006 6:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
spiralvoice
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 238

PostPosted: Sun Feb 26, 2006 11:13 pm    Post subject: Re: Mldonkey - Taking far too long to stop [solved] Reply with quote

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
View user's profile Send private message
spiralvoice
Apprentice
Apprentice


Joined: 09 Mar 2004
Posts: 238

PostPosted: Wed Mar 22, 2006 9:14 am    Post subject: Reply with quote

To improve MLDonkey performance activate USE flag "threads".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum