Hi
On 17/10/14 09:59, Andrew Clark wrote:



Hi,
We have recently started using CXF(2.7.12)  to develop REST services. After 
testing some of these services we have started to notice that the initial 
request has a much larger response time than subsequent request.
After some initial investigation we have been unable to identify what might be 
causing the issue and how to fix it.
Any help would be appreciated
Can it be just a regular 'warm-up' thing ?
If you use CXF on the client side then the initial delay may be due to WebClient initialization. On the server side the initial delay may be caused by a dynamic JAXB context initialization which can be expensive, you can configure JAXBElementProvider to prepare JAXB contexts at the start up...

Cheers, Sergey

thanksAndy
                                        


Reply via email to