Re: [Simpleweb-Support] Why The Thread Pool Stuck With 10 Concurent Thread?
Brought to you by:
niallg
From: Niall G. <nia...@an...> - 2004-07-30 08:52:32
|
Hi, > Server.connection =3D new Connection(new > MySocketHandler(PipelineHandlerFactory.getInstance(new > ServerHandler(),100,1000), new BufferedPipelineFactory(256))); Here you are setting the number of poller threads to 100 and ensuring that the maximum scheduling duration of a poller to 1 second. =20 > From the code you could see that I am going to have 100 concurrent > Thread to handle requests =E2=80=A6.. (Am I right?) You will have 100 concurrent poller threads. > I currently running a test which concurrently requested 72 message to > Simple Webserver =E2=80=A6. But when I check how many concurrent Thread= it > stucks on 10 Concurrent threads although my program that send http > request to the Simple Webserver is reaching 72 concurrent threads. To increase the number of processing threads to 100 you must do this. simple.util.process.ProcessQueue queue =3D ProcessQueue.getInstance(); queue.resize(100); This will ensure that you are using 100 processing threads. Regards Niall |