My project involves development of a meta-search engine -
one that takes search parms from my user and then hits
other search engines for results.
we've implemented this as a jsp that calls a java class
which spawns around 50 threads per user.The reason for
doing this is that the user has to be continuously updated
about the status of each search site ie whether
searching,results found or timed out.
the problem we're facing is that the search takes too much
time to return (ie the jsp to complete and show 'done' on
the browser window)even tho the actual searches (according
to our logs)are taking a fraction of the time.to check the
thread usage we turned on the jcp monitor but have'nt been
able to fathom the intelligence in those logs.
my questions are:
1. we've set the min handler threads to X amount.when we
start the application, there are always more than that X
number of threads.This is after accounting for all our
threads.
2. What exactly are the problems with spawning off our own
threads? we've found only a warning saying that it was a
bad practice to do so, and that jrun's container management
of threads is affected, but how?
any help would be greatly appreciated...
tia
Krishna
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets