We have our application running on tomcat server. It works smoothly but when load balance server is configured with this application, cpu usage goes to 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%. It simply goes to 2% to 5% when we remove virtual ip configuration.
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. 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.
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