Could you please post a code snippet so that I can see how you implemented threading?
Thanks Jose -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sunday, July 27, 2003 4:13 AM To: [EMAIL PROTECTED] Subject: [Webware-discuss] Performance Concern > Date: Sat, 26 Jul 2003 21:10:07 -0500 > From: Randall Smith <[EMAIL PROTECTED]> > > I have a servlet that takes input and sends an email using smtplib. > Today I had network trouble so it could not connect to the mail > server. The servlet would try for about 30 or so seconds to connect > before it failed. While it was attempting to connect, !!!no other > servlets would respond!!! As soon as it finished, they responded. My > app is not in production yet, but this looks like a potential hangup. > Does this behavior sound reasonable for webkit? > > My understanding is that servlets fill requests in serial and that two > or more different servlets should be able to fill requests at the same > time. Is this correct? If so, then I may need to reconfigure my > application because it seems that only one servlet can respond at one > time. > > The serial thing raises another issue. I have been building my > application with a controller(Index.py) that receives all requests and > directs them (self.forward()) to the appropriate servlet. It makes my > program feel more like an application than a pile of scripts. Anyway, > I'm beginning to think that my application will only be able to serve > one request at a time becuase every requests goes to Index.py before > it is forwarded. I used to have a similar problem at http://zunzun.com, where a large data set would take a lo-o-o-o-ong time to surface fit using nonlinear methods. Originally I served requests serially as well, so everyone using the site had to wait until the larger data sets completed. I solved the problem by multithreading my application using WebKit's threads. Multiple users can have their requests served simultaneously, and I have a status page refreshing every two seconds using another servlet that checks the long-running thread's progress. To see this in action try running the function finders on my site. James Phillips http://zunzun.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
