David Araujo wrote:
Hello,
thank you very much. With that driver the error stoped. However with
dbcp pool provider the connection with mysql is very slow and after a
while some mysql errors appear in the logs.
We're going to remove mordred from the supported pool providers: if you
can provide more informations on your problems with DBCP it would be useful.
Please try tuning dbcp options:
<data-source name="maildb"
class="org.apache.james.util.dbcp.JdbcDataSource">
<driver>com.mysql.jdbc.Driver</driver>
<!--
&socketFactory=it.voidlabs.mysql.BindableSocketFactory&localAddress=127.0.0.1
-->
<dburl>URL</dburl>
<user>LOGIN</user>
<password>PASS</password>
<max_wait>60000</max_wait>
<max_idle>5</max_idle>
<max>20</max>
</data-source>
max_wait, max_idle and max are really important when you tune your machine.
Actually if your max is smaller than your total threads you could finish
the connections and receive errors (this could happen with mordred too).
Increasing the max_wait could help to reduce total connections.
I use max:20 and max_wait:60000 in a server using 10 spool threads and
50 delivery threads (it receive very few smtp connections, but generate
a lot of outgoing traffic).
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]