0

By default in tomcat the http port opens as soon as the application is started. This causes many requests to timeout. How to make http port open after application startup on tomcat when the servlet loading is complete?

user1385154
  • 351
  • 1
  • 4
  • 4
  • 1
    Personally I would not add any new server instance to my load balancer until it's fully initialized, then passes an internal smoke test. – Eric J. Aug 08 '14 at 17:46

1 Answers1

1

As stated here,

have a look at the bindOnInit parameter on the connector http://tomcat.apache.org/tomcat-7.0-doc/config/http.html

jcragun
  • 2,060
  • 10
  • 8
  • I checked by setting bindOnInit value but still this is not working. Any ideas regarding what could be the possible reason for this. I read many posts on this. People are saying that this depends on the way the app has been built, but I am not getting enough idea from the responses. – user1385154 Aug 09 '14 at 06:05
  • Also is there a way I can check the values which are actually getting picked up by the tomcat. I have set this attribute value in the Connector xml tag. – user1385154 Aug 09 '14 at 06:07
  • Also I ran the same application with jetty server. There I am not getting this issue. Only tomcat is binding the port because of which this happening. Can some one please help in this problem. – user1385154 Aug 09 '14 at 06:25
  • Ok I found a reason for this. It is because of tomcat 6. There is no parameter for tomcat6. – user1385154 Aug 10 '14 at 04:41
  • Ah, yeah the setting I mentioned is only on Tomcat 7. – jcragun Aug 11 '14 at 13:22