I use the JAXBContext.newInstance operation in my JBoss based web application. This operation, as I understand, is very heavyweight. I only require two unique instances of t
I recently did some performance testing with JAXBContext.newInstance and the result is documented here .
http://app-inf.blogspot.com/2012/10/performance-tuning-logging-right-way.html
When called by one thread, using a fairly large schema with ~195 classes generated, it took ~400ms to finish. When called by 20 threads simultaneously, it caused cpu contentions, and took up to ~5000ms to finish. The creation of marshaller and object serialization of a small object only too ~14ms.