Okay, 1000 threads is too much. It's probably the result of a specific bug causing (for example) block transfers to never finish. A stack trace (./run.sh dump) would be very helpful.
HOWEVER, 100 threads is not IMHO excessive in normal use. On Thu, Sep 07, 2006 at 06:01:17PM +0000, Thomas Bruderer wrote: > Sorry for this post to devel: but it took toad 3 months to answer this on the > Bugtracker... > > >>Obviously they are created somewhere, so why are there 800 - 1200 threads > >>running the same time? (which is in facht the same as zothar mentions) > > >So what? 2.6 handles lots of threads quite efficiently, especially if you > >turn > >NPTL on (java 1.5.0_08 may partly fix the lost-locks bug, and even if it > >doesn't the price is an occasional self-restart). > > If you really ask this question I really ask myself what kind of Developer you > are. Obviously you grew up with Garbage Collectors and the preemptive > Multitasking... and you obviously never heard about effeciency... > > Many Javadevelopers seem to have that problem. They don't care about > effeciency > because its dual Core 64 bit machine will solve any Problems in their > inefficient code. > > But to have 1000 Threads the same time is just stupid. Even if they got > handled > well. Each Context Switch is expensive. Thread > > I read some nice Threads in suns forum... horror. Threads are expensive. > Freenet > already uses far too much resources. And its still alpha. I dont know how many > threads are now, but I am sure not less than 3 months ago. > > I really ask you to get some lessons about Programming with multiple threads. > > I am really shocked about your question... this is just ridicoulus... > > Some comments on Suns Forum: "I agree: a large number of threads can be > problematic. On workstation/server -class systems a few dozen is ok, a few > hundred starts getting problematic." > > What the hell are you doing with over 1000 threads? > > And you really ask why freenet is slow? Gosh sometimes I can't believe this... > > Kind Regards > > > > _______________________________________________ > Devl mailing list > Devl at freenetproject.org > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl > -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20060909/311d42f7/attachment.pgp>
