This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
We have webservices developed using apache cxf 2.0. What we noticed is, after the server startup, the first call response is taking long time to comeback. On the client end, it is timing out. From second request, everything runs real quick in milliseconds. Is there in anyway, we can improve performance on the first webservice request.
I have logging statements. What I noticed is, very first log statement in the service method is taking 10+ seconds. So, I'm looking for ideas more towards deployment fine tuning in weblogic or something else which could bring down the initial time.
Database connection is not a issue as I notice no extra time whether it is first time or subsequent calls.
I don't know the exact solution, but about the reason, it's like Apache CXF prepares the skeleton on first request to it. What I used to do is whenever new deployment is done, hit any of the service with no parameter. If someone can suggest a solution, i would be more than happy.
Joined: Sep 26, 2008
Is there an option, like at time of deployment CXF can build all the skeletons.