开发者

Apache CXF - startup time

开发者 https://www.devze.com 2023-01-17 10:23 出处:网络
We are working on one of the application wherein Apache CXF, Spring is used to develop webservices开发者_StackOverflow社区. The application now contains more than 50 webservices and more than 300 spri

We are working on one of the application wherein Apache CXF, Spring is used to develop webservices开发者_StackOverflow社区. The application now contains more than 50 webservices and more than 300 spring managed beans. Every time the application server is started it takes more than 15-20 minutes. (server with 4gb ram, jboss/tomcat app server, linux os) Is there any way to reduce the startup time taken by the server.


Definitely plug in a profiler and figure out what is going on. That seems WAY WAY longer than it should.

My gut feeling is that it's trying to hit the internet or something for schemas and then waiting for timeouts and such. That's the normal cause for that level of slowdown. In addition to a profiler, using Wireshark or something to monitor and outbound traffic would also be a good idea. If that IS the case, then using a catalog to redirect any traffic to local copies of schemas and wsdl's would produce a HUGE benefit.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号