Tomcat HTTP Connections / Threads

Artifactory tuning for heavy loads - versions 5 & 6

AuthorFullName__c
Ariel Kabov
articleNumber
000004804
ft:sourceType
Salesforce
FirstPublishedDate
2020-04-26T11:39:53Z
lastModifiedDate
2024-03-10T07:49:11Z
VersionNumber
6
Artifactory manages several thread pools. One of them is the HTTP thread pool, which is the number of concurrent incoming HTTP connections Artifactory can handle.
This is configured in $ARTIFACTORY_HOME/tomcat/conf/server.xml. There are separate HTTP connection pools for Artifactory and Access.

Default values:
        <Connector port="8081" sendReasonPhrase="true" relaxedPathChars='[]' relaxedQueryChars='[]' maxThreads="200"/>
        <Connector port="8040" sendReasonPhrase="true" maxThreads="50"/>


Tuning example:
        <Connector port="8081" sendReasonPhrase="true" relaxedPathChars='[]' relaxedQueryChars='[]' maxThreads="1024"/>
        <Connector port="8040" sendReasonPhrase="true" maxThreads="250"/>


*Connector port="8081" is for Artifactory, Connector port="8040" is for Access.
**When updating the Access maxThreads, it is required to update the $ARTIFACTORY_HOME/etc/artifactory.system.properties file with:
artifactory.access.client.max.connections = <VALUE>