Re: [Simpleweb-Support] Simple Threads?
Brought to you by:
niallg
From: Niall G. <gal...@ya...> - 2007-02-13 19:45:55
|
Hi,=0A=0AYes, it is creating the defaul number of handler threads. There is= a way to reduce this by creating a pipeline handler using the following:= =0A=0A=0APipelineHandler handler =3D PipelineHandlerFactory.getInstance(han= dler, 2, 200);=0A=0AThis will create a pipeline handler with 2 threads and = a maximum wait time of 200 milliseconds. This should reduce the number of t= hreads being used.=0A =0ANiall Gallagher=0A=0A----- Original Message ----= =0AFrom: Alexandre Denault <ale...@ad...>=0ATo: simpleweb= -su...@li...=0ASent: Tuesday, February 13, 2007 7:33:55 A= M=0ASubject: [Simpleweb-Support] Simple Threads?=0A=0AHi,=0A=0A I've emb= edded Simple in one of my project and it's doing wonders.=0AHowever, I do w= hat a question related to Simple and threading.=0A=0A I've been debuggin= g my application and I just noticed that when=0AConnectionFactory.getConnec= tion(handler); is called, almost 40 threads=0Aare created? Is there a reaso= n that I need 40 threads to deal with http=0Aresponses? Can I scale it down= ? On average, I only have 1 user connected=0Ato the server.=0A=0AAlex=0A=0A= -------------------------------------------------------------------------= =0AUsing Tomcat but need to do more? Need to support web services, security= ?=0AGet stuff done quickly with pre-integrated technology to make your job = easier.=0ADownload IBM WebSphere Application Server v.1.0.1 based on Apache= Geronimo=0Ahttp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D120709&bid=3D26= 3057&dat=3D121642=0A_______________________________________________=0ASimpl= eweb-Support mailing list=0AS...@li...=0Ahttps= ://lists.sourceforge.net/lists/listinfo/simpleweb-support=0A=0A=0A=0A=0A=0A= =0A_______________________________________________________________________= _____________=0AFood fight? Enjoy some healthy debate =0Ain the Yahoo! Answ= ers Food & Drink Q&A.=0Ahttp://answers.yahoo.com/dir/?link=3Dlist&sid=3D396= 545367 |