[jdom-interest] possible thread issue question
John L. Webber
John.Webber at jentro.com
Thu Jul 1 23:41:15 PDT 2004
Are there any error messages in your servlet container log? You might
try instantiating the StringReader separately from the InputSource, and
closing it after you have the Document, but I suspect your problem is
unrelated to JDOM, and has more to do with your servlet environment.
John
Langel, Richard wrote:
>
>
> We're using 0.9, and we're seeing some strangeness which is causing us
> problems. We have a generic servlet that takes an xml request, converts
> it to a Document, figures out the actual function that the user wants
> and passes the xml off to the appropriate class to handle the request.
> The problem we've seen is that under a stress test eventually call to
> that servlet hangs. It used to be the 101st call, but we increased the
> number of available threads, the number of allowed http connections, and
> the number of allowed client connections and the number of calls has
> risen to about 550, but it's still happening. Below is the function
> we're using to make the Document. Is there some internal configuration
> thing we're missing or is the code below faulty?
>
>
>
> public Document makeDocument(String xmlInput) {
> Document rd = null;
> InputSource is = new InputSource(new StringReader(xmlInput));
> SAXBuilder builder = new SAXBuilder();
> rd = builder.build(is);
> return rd;
> }
>
>
>
--
---------------------------------------------------------
Jentro Technologies GmbH
John L. Webber, Software Development
---------------------------------------------------------
Rosenheimer Str. 145e 81671 München
Tel. +49 89 189 169 80 mailto:John.Webber at jentro.com
Fax +49 89 189 169 99 http://www.jentro.com
---------------------------------------------------------
NOTICE: The information contained in this e-mail is confidential or may
otherwise be legally privileged. It is intended for the named recipient
only. If you have received it in error, please notify us immediately by
reply or by calling the telephone number above and delete this message
and all its attachments without any use or further distribution of its
contents. Please note that any unauthorised review, copying, disclosing
or otherwise making use of the information is strictly prohibited. Thank
you.
---------------------------------------------------------
More information about the jdom-interest
mailing list