Apache CXF - 启动时间

发布于 2024-09-24 22:53:34 字数 190 浏览 0 评论 0原文

我们正在开发一个应用程序,其中使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

万人眼中万个我 2024-10-01 22:53:34

一定要插入一个分析器并弄清楚发生了什么。这似乎比应有的时间要长得多。

我的直觉是它正在尝试访问互联网或其他东西来获取模式,然后等待超时等。这是造成这种程度的放缓的正常原因。除了分析器之外,使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文