Apache CXF - 启动时间
我们正在开发一个应用程序,其中使用 Apache CXF、Spring 来开发 Web 服务。该应用程序现在包含 50 多个 Web 服务和 300 多个 Spring 管理的 bean。应用服务器每次启动都需要15-20分钟以上。 (具有 4GB RAM 的服务器、jboss/tomcat 应用服务器、Linux 操作系统) 有什么办法可以减少服务器的启动时间。
We are working on one of the application wherein Apache CXF, Spring is used to develop webservices. 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一定要插入一个分析器并弄清楚发生了什么。这似乎比应有的时间要长得多。
我的直觉是它正在尝试访问互联网或其他东西来获取模式,然后等待超时等。这是造成这种程度的放缓的正常原因。除了分析器之外,使用 Wireshark 或其他工具来监视和出站流量也是一个好主意。如果是这种情况,那么使用目录将任何流量重定向到模式和 wsdl 的本地副本将产生巨大的好处。
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.