Hello all,
I have James running on my server
I am working with James 2.2.0.
Email for this server is received via SMTP.
Spooled once, then processed by spoolmanager.
Processed email is forwarded via SMTP using RemoteDelivery Mailet.
I have question regarding number of SMTP threads upon receiving emails.
Number of connections and SMTP threads for this server is set as follows.
<connections>
<idle-timeout>300000</idle-timeout>
<max-connections>30</max-connections>
</connections>
<smtpserver enabled="true">
<port>25</port>
<handler>
<helloName autodetect="false">emailserver</helloName>
<connectiontimeout>360000</connectiontimeout>
<authorizedAddresses>127.0.0.1,192.168.40.10</authorizedAddresses>
<maxmessagesize>0</maxmessagesize>
</handler>
<threadGroup> smtp </threadGroup>
</smtpserver>
<thread-manager>
<thread-group>
<name>default</name>
<priority>5</priority>
<is-daemon>false</is-daemon>
<max-threads>100</max-threads>
<min-threads>20</min-threads>
<min-spare-threads>20</min-spare-threads>
</thread-group>
<thread-group>
<name>smtp</name>
<priority>1</priority>
<is-daemon>false</is-daemon>
<max-threads> 10 </max-threads>
<min-threads> 5 </min-threads>
<min-spare-threads>5</min-spare-threads>
</thread-group>
</thread-manager>
I set expecting for 10SMTP threads to be implemented, and also
10 connections to SMTP, based on config.xml example.
<!-- max-threads - the maximum number of threads allowed in the pool. -->
<!-- min-threads - the minimum number of threads allowed in the
pool. (not implemented) -->
<!-- min-spare-threads - (not implemented) -->
By booting james with this config, and confirming number of smtp connections,
I was able to make 4 connections, error from 5th connection.
--- smtpserver-log ---
ERROR smtpserver: Exception opening socket: Unable to access thread
pool due to java.lang.Exception: Could not create enough Components to
service your request.
java.lang.IllegalStateException: Unable to access thread pool due to
java.lang.Exception: Could not create enough Components to service
your request.
----------------------
I tried number of times, and succeded in making 10 connections with
configuration below.
<thread-group>
<name>smtp</name>
<priority>1</priority>
<is-daemon>false</is-daemon>
<max-threads> 21 </max-threads>
<min-threads> 10 </min-threads>
<min-spare-threads>5</min-spare-threads>
</thread-group>
What is the configuration procedure for maximum number of SMTP
simultaneous connections?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]