title: SonarQube web server goes down after three days
body: <p>Installation:
  SonarQube 5.0
  MySql-5.6.23</p>
  
  <p>My question is about SonarQube web server: 
  When the SonarQube web server isn't used for more than three days and I try to reach my SonarQube web server after this time, I get the error message:</p>
  
  <p>"We're sorry, but something went wrong.</p>
  
  <p>Please try back in a few minutes and contact support if the problem persists.</p>
  
  <p>Go back to the homepage"</p>
  
  <p>On the other hand, when the SonarQube web server is in use every day. No problem occurs.</p>
  
  <p>There is no error message in the SonarQube log file. 
  The DB is still working.</p>
  
  <p>Can anybody give me a hint how I can make the SonarQube webserver working also after a timeout of three days?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Database connection settings:</p>
  
  <pre><code>#--------------------------------------------------------------------------------------------------
  # DATABASE
  #
  # IMPORTANT: the embedded H2 database is used by default. It is recommended for tests but not for
  # production use. Supported databases are MySQL, Oracle, PostgreSQL and Microsoft SQLServer.
  
  # User credentials.
  # Permissions to create tables, indices and triggers must be granted to JDBC user.
  # The schema must be created first.
  #sonar.jdbc.username=sonar
  #sonar.jdbc.password=sonar
  
  #----- Embedded Database (default)
  # It does not accept connections from remote hosts, so the
  # server and the analyzers must be executed on the same host.
  #sonar.jdbc.url=jdbc:h2:tcp://localhost:9092/sonar
  
  # H2 embedded database server listening port, defaults to 9092
  #sonar.embeddedDatabase.port=9092
  
  
  #----- MySQL 5.x
  sonar.jdbc.url=jdbc:mysql://localhost:3306/sonar?useUnicode=true&amp;characterEncoding=utf8&amp;rewriteBatchedStatements=true&amp;useConfigs=maxPerformance
  
  
  #----- Oracle 10g/11g
  # - Only thin client is supported
  # - Only versions 11.2.* of Oracle JDBC driver are supported, even if connecting to lower Oracle versions.
  # - The JDBC driver must be copied into the directory extensions/jdbc-driver/oracle/
  # - If you need to set the schema, please refer to http://jira.codehaus.org/browse/SONAR-5000
  #sonar.jdbc.url=jdbc:oracle:thin:@localhost/XE
  
  
  #----- PostgreSQL 8.x/9.x
  # If you don't use the schema named "public", please refer to http://jira.codehaus.org/browse/SONAR-5000
  #sonar.jdbc.url=jdbc:postgresql://localhost/sonar
  
  
  #----- Microsoft SQLServer 2005/2008
  # Only the distributed jTDS driver is supported.
  #sonar.jdbc.url=jdbc:jtds:sqlserver://localhost/sonar;SelectMethod=Cursor
  
  
  #----- Connection pool settings
  # The maximum number of active connections that can be allocated
  # at the same time, or negative for no limit.
  #sonar.jdbc.maxActive=50
  
  # The maximum number of connections that can remain idle in the
  # pool, without extra ones being released, or negative for no limit.
  #sonar.jdbc.maxIdle=5
  
  # The minimum number of connections that can remain idle in the pool,
  # without extra ones being created, or zero to create none.
  #sonar.jdbc.minIdle=2
  
  # The maximum number of milliseconds that the pool will wait (when there
  # are no available connections) for a connection to be returned before
  # throwing an exception, or &lt;= 0 to wait indefinitely.
  #sonar.jdbc.maxWait=5000
  
  #sonar.jdbc.minEvictableIdleTimeMillis=600000
  #sonar.jdbc.timeBetweenEvictionRunsMillis=30000
  </code></pre>
  
  <p>Web Server settings:</p>
  
  <pre><code>#--------------------------------------------------------------------------------------------------
  # WEB SERVER
  
  # Web server is executed in a dedicated Java process. By default heap size is 768Mb.
  # Use the following property to customize JVM options.
  #    Recommendations:
  #
  #    The HotSpot Server VM is recommended. The property -server should be added if server mode
  #    is not enabled by default on your environment: http://docs.oracle.com/javase/7/docs/technotes/guides/vm/server-class.html
  #
  #    Set min and max memory (respectively -Xms and -Xmx) to the same value to prevent heap
  #    from resizing at runtime.
  #
  sonar.web.javaOpts=-Xmx768m -XX:MaxPermSize=160m -XX:+HeapDumpOnOutOfMemoryError
  
  # Same as previous property, but allows to not repeat all other settings like -Xmx
  #sonar.web.javaAdditionalOpts=
  
  # Binding IP address. For servers with more than one IP address, this property specifies which
  # address will be used for listening on the specified ports.
  # By default, ports will be used on all IP addresses associated with the server.
  sonar.web.host=xxx.xxx.x.xxx
  
  # Web context. When set, it must start with forward slash (for example /sonarqube).
  # The default value is root context (empty value).
  #sonar.web.context=
  
  # TCP port for incoming HTTP connections. Disabled when value is -1.
  sonar.web.port=9000
  
  # TCP port for incoming HTTPS connections. Disabled when value is -1 (default).
  #sonar.web.https.port=-1
  
  # HTTPS - the alias used to for the server certificate in the keystore.
  # If not specified the first key read in the keystore is used.
  #sonar.web.https.keyAlias=
  
  # HTTPS - the password used to access the server certificate from the
  # specified keystore file. The default value is "changeit".
  #sonar.web.https.keyPass=changeit
  
  # HTTPS - the pathname of the keystore file where is stored the server certificate.
  # By default, the pathname is the file ".keystore" in the user home.
  # If keystoreType doesn't need a file use empty value.
  #sonar.web.https.keystoreFile=
  
  # HTTPS - the password used to access the specified keystore file. The default
  # value is the value of sonar.web.https.keyPass.
  #sonar.web.https.keystorePass=
  
  # HTTPS - the type of keystore file to be used for the server certificate.
  # The default value is JKS (Java KeyStore).
  #sonar.web.https.keystoreType=JKS
  
  # HTTPS - the name of the keystore provider to be used for the server certificate.
  # If not specified, the list of registered providers is traversed in preference order
  # and the first provider that supports the keystore type is used (see sonar.web.https.keystoreType).
  #sonar.web.https.keystoreProvider=
  
  # HTTPS - the pathname of the truststore file which contains trusted certificate authorities.
  # By default, this would be the cacerts file in your JRE.
  # If truststoreFile doesn't need a file use empty value.
  #sonar.web.https.truststoreFile=
  
  # HTTPS - the password used to access the specified truststore file. 
  #sonar.web.https.truststorePass=
  
  # HTTPS - the type of truststore file to be used.
  # The default value is JKS (Java KeyStore).
  #sonar.web.https.truststoreType=JKS
  
  # HTTPS - the name of the truststore provider to be used for the server certificate.
  # If not specified, the list of registered providers is traversed in preference order
  # and the first provider that supports the truststore type is used (see sonar.web.https.truststoreType).
  #sonar.web.https.truststoreProvider=
  
  # HTTPS - whether to enable client certificate authentication.
  # The default is false (client certificates disabled).
  # Other possible values are 'want' (certificates will be requested, but not required),
  # and 'true' (certificates are required).
  #sonar.web.https.clientAuth=false
  
  # The maximum number of connections that the server will accept and process at any given time.
  # When this number has been reached, the server will not accept any more connections until
  # the number of connections falls below this value. The operating system may still accept connections
  # based on the sonar.web.connections.acceptCount property. The default value is 50 for each
  # enabled connector.
  #sonar.web.http.maxThreads=50
  #sonar.web.https.maxThreads=50
  
  # The minimum number of threads always kept running. The default value is 5 for each
  # enabled connector.
  #sonar.web.http.minThreads=5
  #sonar.web.https.minThreads=5
  
  # 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 for each enabled connector.
  #sonar.web.http.acceptCount=25
  #sonar.web.https.acceptCount=25
  
  # Access logs are generated in the file logs/access.log. This file is rolled over when it's 5Mb.
  # An archive of 3 files is kept in the same directory.
  # Access logs are enabled by default.
  #sonar.web.accessLogs.enable=true
  
  # TCP port for incoming AJP connections. Disabled if value is -1. Disabled by default.
  #sonar.ajp.port=-1
  </code></pre>