**`SONAR_WEB_HTTP_ACCEPTCOUNT=25`**
The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received when the queue is full will be refused. The default value is 25.
+**`SONAR_WEB_HTTP_KEEPALIVETIMEOUT=60000`**
+The number of milliseconds this Connector will wait for another HTTP request before closing the connection. Use a value of -1 to indicate no (i.e. infinite) timeout. The default value is 60000 (ms).
+
**`SONAR_AUTH_JWTBASE64HS256SECRET=`**
By default users are logged out and sessions closed when server is restarted. If you prefer keeping user sessions open, a secret should be defined. Value is HS256 key encoded with base64. It must be unique for each installation of SonarQube. Example of command-line:
echo -n "type_what_you_want" | openssl dgst -sha256 -hmac "key" -binary | base64
WEB_HTTP_MIN_THREADS("sonar.web.http.minThreads"),
WEB_HTTP_MAX_THREADS("sonar.web.http.maxThreads"),
WEB_HTTP_ACCEPT_COUNT("sonar.web.http.acceptCount"),
+ WEB_HTTP_KEEP_ALIVE_TIMEOUT("sonar.web.http.keepAliveTimeout"),
WEB_SESSION_TIMEOUT_IN_MIN("sonar.web.sessionTimeoutInMinutes"),
WEB_SYSTEM_PASS_CODE("sonar.web.systemPasscode"),
WEB_ACCESSLOGS_ENABLE("sonar.web.accessLogs.enable"),
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_ACCEPT_COUNT;
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_MAX_THREADS;
import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_MIN_THREADS;
+import static org.sonar.process.ProcessProperties.Property.WEB_HTTP_KEEP_ALIVE_TIMEOUT;
/**
* Configuration of Tomcat connectors
connector.setProperty("minSpareThreads", String.valueOf(props.valueAsInt(WEB_HTTP_MIN_THREADS.getKey(), 5)));
connector.setProperty("maxThreads", String.valueOf(props.valueAsInt(WEB_HTTP_MAX_THREADS.getKey(), 50)));
connector.setProperty("acceptCount", String.valueOf(props.valueAsInt(WEB_HTTP_ACCEPT_COUNT.getKey(), 25)));
+ connector.setProperty("keepAliveTimeout", String.valueOf(props.valueAsInt(WEB_HTTP_KEEP_ALIVE_TIMEOUT.getKey(), 60000)));
}
private static void configureCompression(Connector connector) {
# The default value is 25.
#sonar.web.http.acceptCount=25
+# The number of milliseconds this Connector will wait for another HTTP request before closing the
+# connection. The default value is to use the value that has been set for the connectionTimeout
+# attribute. Use a value of -1 to indicate no (i.e. infinite) timeout.
+# The default value is 25.
+#sonar.web.http.keepAliveTimeout=60000
+
# By default users are logged out and sessions closed when server is restarted.
# If you prefer keeping user sessions open, a secret should be defined. Value is
# HS256 key encoded with base64. It must be unique for each installation of SonarQube.