Gnutella Forums  

Go Back   Gnutella Forums > Current Gnutella Client Forums > LimeWire+WireShare (Cross-platform) > Technical Support > General Linux Support
Register FAQ The Twelve Commandments Members List Calendar Arcade Find the Best VPN Today's Posts

General Linux Support For questions regarding use of LimeWire or WireShare or related questions on the Linux operating system. This includes installation questions and answers. (Check the Stickies marked in Red at top of this section.)


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old January 24th, 2003
Novicius
 
Join Date: January 24th, 2003
Posts: 2
AlHaz is flying high
Default fork bomb, instability in 2.8.5, 2.8.6

I have a problem where 2.8.5 and .6 - sometimes immediately upon execution but sometimes upon becoming an ultrapeer - spawn hundreds (literally) of java forks and become unusable. This happens with the sun 1.4.0 vm and with the ibm 1.3.1 vm

with 2.8.6, it's worse because it starts popping up error dialogs faster than i can close them. I eventually go to a different console to killall -KILL java. I am unable to copy/paste the contents of the error dialog because xwindows becomes unusable due to constantly shifting focus.

Also in 2.8.6 there is a tendency for the ui thread to stop functioning (no screen update) when i try to look at the connections tab, though it's clear limewire is still running in some sense because it's using plenty of cpu cycles and bandwidth. I've waited as long as 20 minutes for it to come back before killing it.

I don't have any of these problems in 2.7.13, but I've spoken to a friend who has the same problems with 2.8 versions. I believe this is probably the same issue as another poster mentioned, having to do with java out of memory errors. The number of searches and number of downloads don't have anything to do with this. "ps ax | grep java | wc -l" returning 241 does.

It doesn't matter, but my linux is debian/woody running on a two-processor intel system with 640 megs of ram, and i am launching limewire with an unmodified runLime.sh script, and installed using the tarball.
Reply With Quote
  #2 (permalink)  
Old January 24th, 2003
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

That's not a bug, it's not exactly a feature either but it's compatible to bloody MacOS.

LimeWire needs two threads per connection, that makes up to 162 as an ultrapeer, plus at least one thread per download plus GUI thread, plus one thread per upload, plus, plus, plus....

The developers are trying hard to reduce the number of threads needed. - If they could use java's non blocking io, they could use a lot less threads but unfortunately MacOS doesn't support it (like so many things that could boost LimeWire's performance).

Last edited by trap_jaw; January 24th, 2003 at 02:36 PM.
Reply With Quote
  #3 (permalink)  
Old January 24th, 2003
Novicius
 
Join Date: January 24th, 2003
Posts: 2
AlHaz is flying high
Default

Fine, but 2.7 doesn't become unusable and 2.8 does.

I've got plenty of ram. If limewire wants to use a lot, whatever. As long as it keeps working. Currently, recent versions, it doesn't.
Reply With Quote
  #4 (permalink)  
Old January 24th, 2003
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

Well, it run's on my system (SuSE 7.3 Athlon TB 800Mhz, 256mb ram), using Sun's jre 1.4. No matter if I'm running as an ultrapeer or not and sharing ~6000 files.

There might be problems while LimeWire is hashing your files. I don't know anything else what could be causing your problem (except for maybe more than a hundred downloads at the same time).
Reply With Quote
  #5 (permalink)  
Old February 22nd, 2003
auser
Guest
 
Posts: n/a
Default

Yeah, I have a problem like that too, ps -aux | grep LimeWire | wc -l reports 214 limewires running, it works, but it seems a little, excessive. Anyhoo, I just came to find out if it was leaking threads or something, but if that is the normal mode of operation, so be it. I guess it isn't hurting anything.
Reply With Quote
  #6 (permalink)  
Old February 23rd, 2003
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

There was a thread problem in 2.6 or 2.5 but it has been fixed. Every now and then I'm running LimeWire in debug mode and so far the thread management seems okay in 2.8.X.
Reply With Quote
  #7 (permalink)  
Old February 23rd, 2003
auser
Guest
 
Posts: n/a
Default

Quote:
Originally posted by trap_jaw
There was a thread problem in 2.6 or 2.5 but it has been fixed. Every now and then I'm running LimeWire in debug mode and so far the thread management seems okay in 2.8.X.
Can't be too fixed, I'm running 2.8.6 and it was hanging around two hundred fifteen to two hundred thirty threads. It threw some kind of exhaustion error once, but seemed to survive. It didn't seem to be a problem, but it didn't seem quite right either.
Reply With Quote
  #8 (permalink)  
Old February 23rd, 2003
Distinguished Member
 
Join Date: September 21st, 2002
Location: Aachen
Posts: 733
trap_jaw is flying high
Default

215-230 threads is normal for LimeWire (v2.8.6-). You need a gui thread, one thread per upload/download, two threads per regular gnutella connection, a garbage collector thread, and so on.
Reply With Quote
  #9 (permalink)  
Old May 14th, 2003
Hossman
Guest
 
Posts: n/a
Default process # limit

I was encountering the same problem as the orriginal poster when upgrading to 2.8 ... occasionally Limewire would crash HARD, an error dialog with an exception would pop up, but the whole app would look up before there was any time to look at the exception.

When someone in this thread mentioned that it's not unusal for Limewire to use several hundred threads/processes I figured out what theproblem is...

Dependig on what Linux kernel you are using, and how your system is configured there may be a hard limit on the total number of processes allowed per user, or for the whole system.

Aparently, in Limwire versions <2.8, Limewire rarely needs more then 256 processes ... i say this, becuase i almost never had this problem with Limewire 2.7, even though my shell was conifugred to only allow me to use 256 processes.

depending on whhch shell you use, you should look into either the "limit" or "ulimit" commands. You should also search for "PAM" which is an administration tool that allows root to set hard limits on users regardless of what they set in their shell.

HOWEVER, on top of all of this, is the possibility of an evern more dominating limit ... aparently in teh Linux 2.2.x kernels, there is an absolute hard limit 512 processes for the whole system. (this can be changed at compile time, but the fact remains -- there is a hard limit which can't be changed without recompiling the kernel.)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
general instability while using limewire girard Open Discussion topics 1 September 26th, 2004 10:20 AM
strange solution for 4.0.8 instability sirmh General Windows Support 9 August 30th, 2004 11:34 PM
Fork Bomb also in 2.9 elguapo General Linux Support 1 May 22nd, 2003 11:59 AM
couldn't fork? Unregistered General Mac OSX Support 0 September 2nd, 2002 06:55 PM
Is someone planning a fork? Unregistered Open Discussion topics 0 November 7th, 2001 11:25 PM


All times are GMT -7. The time now is 08:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.