On 02/09/2015 21:53, Cohen, Laurence wrote: > Thank you Chris, > > We only have one webserver and two tomcat applications on the back end. > Where do I set the connections allowed if we are using mod_proxy_httpd?
If this is the issue (and it is a good bet it is) the quick (and not that dirty) solution is to switch to the NIO HTTP connector on the Tomcat side. Mark > > Thanks, > > Larry Cohen > > On Wed, Sep 2, 2015 at 4:47 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > > Larry, > > On 9/2/15 3:54 PM, Cohen, Laurence wrote: >>>> We have a webserver and an appserver, and the webserver talks to >>>> the appserver on port 8007. Every once the communication will >>>> stop, and we will notice an error on the webserver saying that it >>>> can't talk to the appserver. When this happens, I will run a >>>> netstat -an |grep 8007 on the appserver, and there are hundreds of >>>> connections to that port. When I restart the app, it will be back >>>> to about 10 connections, and they will start growing again. >>>> >>>> I'm trying to figure out why they are growing so quickly, and why >>>> they aren't dying when the connection is no longer needed. > > My guess is that the number of connections coming from httpd and the > number of connections allowed to Tomcat don't match up. > > How many web servers? How many back-end Tomcats? Which connector are > you using? > > If w = # of httpd instances > c = # of total httpd threads > then you need w * c connections allowed in all of your Tomcats (see > <Connector> attribute maxConnections. > > Another possibility is that the connection timeouts on httpd (mod_jk > connect_timeout, in ms) versus Tomcat (<Connector> connectionTimeout, > in ms) are not the same. > > -chris >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org >> >> > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org