tomcat-users mailing list archives

Re: Is it possible turn off autoincrement the port of AJP when tomcat start and port configured is in use ?

Date

Fri, 02 Sep 2011 09:22:15 GMT

Ok, I downloaded tomcat source code and found "maxPort" which I think is the
parameter I need.
I think this should be documented in
http://tomcat.apache.org/tomcat-6.0-doc/config/ajp.html or in mod_jk from
apache.
Thanks!
On Fri, Sep 2, 2011 at 11:17 AM, Javier Barroso <javibarroso@gmail.com>wrote:
> Hi,
>
> I have a tomcat 6.0.20 where I have next config in server.xml:
> <Connector port="8010" protocol="AJP/1.3" redirectPort="8443"
> maxThreads="1024" connectionTimeout="60000" />
>
> Today I found this is in catalina.out:
>
> 12-ago-2011 9:22:32 org.apache.jk.common.
> ChannelSocket init
> INFO: Port busy 8010 java.net.BindException: Address already in use
> 12-ago-2011 9:22:32 org.apache.jk.common.ChannelSocket init
> INFO: Port busy 8011 java.net.BindException: Address already in use
> 12-ago-2011 9:22:32 org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8012
>
>
> I need Tomcat running in 8010 port, if it cannot use that port, it should
> not be running in another. I have configured that port in apache mod_ajp, so
> I don't like that port can be dinamyc.
>
> Is there any tip to disable this mechanism ? I searched in google and this
> list and in tomcat docs but I didn't find anything
>
> Thank you very much!
>