-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

David,

On 1/16/13 3:41 PM, David Kumar wrote:
> I forgot to mention that we have a Apache being a loadbalancer in 
> front of these two tomcats. The Apache uses port 8080.

So, Apache httpd listens on port 8080? Why not port 80?

> Here are the requested connectors
> 
> tomcat1:
> 
> <Connector port="7080" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="8443" /> <Connector
> executor="tomcatThreadPool" port="7080" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="8443" />

Is that a double-paste error? You have two connectors both with port=7080.

> <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" 
> maxThreads="150" scheme="https" secure="true" clientAuth="false"
> sslProtocol="TLS" /> <Connector port="7009" protocol="AJP/1.3"
> redirectPort="8443" />
> 
> tomcat2: <Connector port="9080" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="9443" /> <Connector
> executor="tomcatThreadPool" port="8080" protocol="HTTP/1.1" 
> connectionTimeout="20000" redirectPort="8443" /> <Connector
> port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150"
> scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"
> /> <Connector port="9009" protocol="AJP/1.3" redirectPort="9443"
> />

Weird: you have httpd-lb out front plus 4 connectors in each Tomcat?

> Yeah I'm sure its port 7090, as you can see above.. :-) 7009 is
> used by AJP!?

Yes, you have port=7009 in one of your <Connectors>:

> As I had to restart the server, I don't know who was the owner of
> that PID. Right now we do have 2 or 3 of: java    9495 tomcat  201u
> IPv6            1866645      0t0     TCP
> localhost:afs3-rmtsys->localhost:55116 (ESTABLISHED)

I'm willing to bet that the owner of port 55116 is httpd.

> If I run ulimit -n with the tomcat user I get: 1024. But I did set 
> the max open files at the startscript for each tomcat (init.d)
> with:
> 
> ulimit -Hn 4096 ulimit -Sn 4096

That might not work unless the script is being run by root.

There might also be a global file handle limit as well. The real
question is why there are so many file handles being used. Do you
really need 4 connectors in each Tomcat?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEAREIAAYFAlD3IK0ACgkQ9CaO5/Lv0PCUbQCfeVRFhe9h0XB69wJoPnXdTpSt
sAcAoISfEaQdArlFhkhxJHGJArOEZlmL
=xwRe
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to