users@jaxb.java.net

Re: JAXBContext.newInstance() - long time to execute

From: Dmitri Colebatch <dim_at_colebatch.com>
Date: Sat, 25 Mar 2006 07:29:12 +1100

Hi Tanya,

Its certainly an expensive operation, but I wouldn't expect it to take
anywhere near that long - I'd be running a profiler over it to find
out what's taking the time, network is the only thing I can think of
that would be that slow...

cheers
dim


On 3/25/06, Beech Tanya <TBEECH_at_qinetiq.com> wrote:
>
>
>
>
> Hi
>
>
>
> I've been using JAXB (2) with Tomcat (5.5.16) inside axis2 and have found that first time JAXBContext.newInstance(...) is called it takes over 1 minute with 100% cpu usage and often causes the connection to time out. Subsequent calls happen instantly as it does inside my test harness. Any ideas as to what can cause it to hang for this long?
>
>
>
> Regards Tanya
>
>
>
> Tanya Beech
> Signal Processing
>
> QinetiQ
> Bldg E Rm 103
> Malvern Technology Centre
> St. Andrews Road, Malvern
> Worcestershire, WR14 3PS
>
>
> Tel:
>
> 01684 895232
>
>
> Email:
>
> tbeech_at_QinetiQ.com
>
>
> Mobile:
>
> 07766 134364
>
>
> Web:
>
> www.QinetiQ.com
>
> QinetiQ - The Global Defence and Security Experts
>
>
>
> The information contained in this E-Mail and any subsequent
> correspondence is private and is intended solely for the intended
> recipient(s). The information in this communication may be confidential
> and/or legally privileged. Nothing in this e-mail is intended to
> conclude a contract on behalf of QinetiQ or make QinetiQ subject to any
> other legally binding commitments, unless the e-mail contains an express
> statement to the contrary or incorporates a formal Purchase Order.
>
> For those other than the recipient any disclosure, copying,
> distribution, or any action taken or omitted to be taken in reliance on
> such information is prohibited and may be unlawful.
>
> Emails and other electronic communication with QinetiQ may be monitored
> and recorded for business purposes including security, audit and
> archival purposes. Any response to this email indicates consent to
> this.
>
> Telephone calls to QinetiQ may be monitored or recorded for quality
> control, security and other business purposes.