[ 
https://issues.apache.org/jira/browse/JAMES-799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12517726
 ] 

Stefano Bagnara commented on JAMES-799:
---------------------------------------

FWIW I use dbcp, james 2.3.1 and mysql and I deliver/receive more than few 
hundred of messages (btw, in how much time?).
E.g: 20K messages per hour is not a big deal for james, mysql and dbcp.

Maybe you want to post similar problems to the user list, to understand whether 
this is a bug or not. And maybe you want to provide your config.xml and any 
special configuration you made, otherwise it is difficult for the JAMES team to 
do anything wrt this issue.

> dbcp causes "Address already in use: connect" exception and server fails
> ------------------------------------------------------------------------
>
>                 Key: JAMES-799
>                 URL: https://issues.apache.org/jira/browse/JAMES-799
>             Project: James
>          Issue Type: Bug
>          Components: MailStore & MailRepository
>    Affects Versions: 2.3.1
>         Environment: Windows XP, MySQL 4.1.22
>            Reporter: Amichai Rothman
>
> I've tried using FromRepository servlet (manual one-time configuration) to 
> migrate a file store with ~1.5K messages to a database store. however afte a 
> few hundred inserts, the logs started filling with exceptions, whose root 
> cause is "Address already in use: connect". After much investigation, I found 
> out using netstat that there are thousands of ports open (all local - both 
> JAMES and MySQL are on the same server), and as some googled post suggested, 
> the available TCP ports may have been exhausted. The result was that some of 
> the message never made it through the conversion - the logs showed that after 
> 3 db connection retries JAMES gave up on them.
> I tried lowering the number of threads in the db source configuration, spool 
> configuration, and default thread pool configuration (all in config.xml) but 
> nothing helped. Eventually, I reverted all my configuration attempts, and 
> applied the single change of using mordred instead of dbcp, and now 
> everything works fine. I don't know if this is a JAMES or a dbcp bug, but 
> it's definitely unacceptible for db connections to fail when there is a bit 
> of load on the system (a few hundred messages).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to