acceptCount variable:

Following is the current configuration in server.xml  I am using version. 6.

Connector port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"


Resource name="jdbc/DB_NAME" auth="Container" type="javax.sql.DataSource"
        driverClassName="org.
postgresql.Driver" url="jdbc:postgresql://IP:PORT/DB_NAME"
        username="" password=""
        maxActive="100" maxIdle="20" maxWait="30000"
        validationQuery="select 1" testOnBorrow="true"
        removeAbandoned="true" removeAbandonedTimeout="120"
logAbandoned="true" />



Planning to add  below parameters.

maxThreads="20000"
acceptCount="500"



The situation I got is some times i am not getting timely response from the
outsiders. In this case i need to make the bigger queue in connection pool.

As per document and forums says default queue size of acceptCount is 100.
During the time if new connection request comes in it simply refuse it.



1)

I just do not want to refuse the new connection, but want to keep that
connection in a pool. I want to make the queue size of 500 and if possible
more than that.
What is your opinion on below configuration. Will it help me. Is it going
to degrade the performance if i will increase the value of acceptCount
variable along with maxThreads.

maxThreads="20000"
acceptCount="500"


2)

As tomcat works on FIFO (first in first out) model. Is there any way to
override the precedence of connection. I know its quite not possible.
However, in case some one has any thought on it.

Reply via email to