Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The text describes three solutions to prevent connection aborts:</p> <ol> <li><p>Configure the connection string with <code>autoReconnect=true</code>. This is a property of the URL connection string, which works at the driver level. You need to change the connection string in the data source configuration.</p> <pre><code>url="jdbc:mysql://localhost:3306/confluence?autoReconnect=true" </code></pre></li> <li><p>Increase the timeout. This is normally a property of the database. You can increase this value to see if you get less connection abort.</p></li> <li><p>Configure the connection pool to test the connection validatiy. This is done at the pool, not a the driver level. This will depend on the data source implementation that you use. But it should be configurable in the property of the data source, if you use a pooled one, e.g. <a href="http://sourceforge.net/projects/c3p0/" rel="noreferrer">c3p0</a>.</p> <ul> <li><a href="https://stackoverflow.com/questions/520585/connection-pooling-options-with-jdbc-dbcp-vs-c3p0">Connection pooling options with JDBC: DBCP vs C3P0</a></li> <li><a href="http://snipplr.com/view/14725/c3p0-datasource-config-connectionpool/" rel="noreferrer">http://snipplr.com/view/14725/c3p0-datasource-config-connectionpool/</a></li> <li><a href="http://www.mchange.com/projects/c3p0/index.html#configuring_connection_testing" rel="noreferrer">http://www.mchange.com/projects/c3p0/index.html#configuring_connection_testing</a></li> </ul></li> </ol> <p>Additionnal comments:</p> <ul> <li>The datasource/pool can also have a timeout, which corresponds to the time an idle connection remains in the pool. To not confused with the db timeout.</li> <li>There are several way to test the validity of a connection. One common way is to have dummy test table. The pool will issue a select on the dummy test table to see if the connection is still OK. </li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload