简体   繁体   English

虚拟IP配置使tomcat cpu使用率达到100%

[英]tomcat cpu usage goes 100% with virtual ip configuration

We have our application running on tomcat server. 我们有我们的应用程序运行在tomcat服务器上。 It works smoothly but when load balance server is configured with this application, cpu usage goes to 100%. 它可以正常运行,但是当使用此应用程序配置负载平衡服务器时,CPU使用率将达到100%。

Strange things is, when we look at the thread dump, there is no suspicious thread activity. 奇怪的是,当我们查看线程转储时,没有可疑的线程活动。 Most of the threads are waiting or parked even when cpu usage of java process is 100%. 即使Java进程的CPU使用率为100%,大多数线程仍在等待或驻留。 It simply goes to 2% to 5% when we remove virtual ip configuration. 当我们删除虚拟IP配置时,它只是达到2%到5%。

I learned from load balancer/Virtual ip configuration that it probe the server port which is 8080 at every 5 seconds just to check if the port is alive or not. 我从负载均衡器/虚拟ip配置了解到,它每隔5秒就会探测服务器端口8080,目的只是检查端口是否处于活动状态。 But I assume that this is just port scanning nothing else. 但是我认为这只是端口扫描。 There is no mark or such activity in thread dump neither in catalina.log during this process. 在此过程中,catalina.log中的线程转储中没有标记或此类活动。

Does any one have faced this kind of situation? 有没有人遇到过这种情况? Kindly provide your thoughts as I am pointless for further debugging this problem. 请提供您的想法,因为我对于进一步调试此问题毫无意义。

Let me know if more information is required. 让我知道是否需要更多信息。 I will update the question with the details. 我将用详细信息更新问题。

Thanks, 谢谢,

Gaurav 拉夫

Please take a look at this post too: https://serverfault.com/a/830052 请也看看这篇文章: https : //serverfault.com/a/830052

Poster Inna found out that a single call to https://server.tld:8080 could get the Tomcat server to use 100%. Poster Inna发现,对https://server.tld:8080的一个调用可以使Tomcat服务器使用100%。 I can confirm this, because I just reproduced this on one of our servers (on staging platform luckily). 我可以确认这一点,因为我只是在我们的一台服务器上复制了这个(幸运的是,在登台平台上)。 We're running Ubuntu 12.02 with Tomcat 6. They just released an update yesterday which fixes a regression. 我们正在使用Tomcat 6运行Ubuntu 12.02。他们昨天刚刚发布了一个更新该更新修复了回归问题。 Not sure if this solves the problem. 不知道这是否可以解决问题。

The proposed solution is to revert to a "known-good" version of Tomcat, but the issue might be solved in last nights update/patch too. 提议的解决方案是还原为Tomcat的“已知有效”版本,但是该问题也可以在昨晚的更新/补丁中解决。 I will update this post when I have more info. 我将在有更多信息时更新此帖子。

[Update 1] [更新1]
Most recent updates known on 2017-02-03 11:30 CET did not fix the problem. CET 2017-02-03 11:30已知的最新更新不能解决问题。 I've updated our staging server with all updates and it still has the same issue. 我已经用所有更新更新了登台服务器,但它仍然存在相同的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM