Al Caponi wrote:
Hi guys,
Apologies for re-posting but I still can't find any good stuff so far for
the configuration problem described below.

Is there any other exception logged somewhere?
Maybe your system is not able to handle 1000 threads and you have core jvm exceptions for that.

You should keep the number of max connections allowed and threads to something your hardware/OS is able to manage.

max-connections should be limited, threads should be limited.
If you don't limit anything than the hardware or the OS will limit you sometimes.

Stefano

-----Original Message-----
From: Al Caponi [mailto:[EMAIL PROTECTED] Sent: Monday, May 22, 2006 4:14 PM
To: 'James Users List'
Subject: How to configure thread manager?

Hi guys,
Any kind soul could point me to some doco on thread-manager configuration? I'd like to figure out how to specifically make other components 'look up' and use a thread pool. The documentation for Threadmanager block only says 'This block controls the thread pools available inside James. Only expert administators should modify
this configuration.'. Not much luck on the wiki :(

I'm running James 2.2 on a Win2K server box and it hit a 'Could not create enough Components to service your request' error today. I'm hoping to solve my problem by providing a bigger and more dedicated thread pool for each
service.
----------------------
I have the following config.xml:

   <!-- The Connection Manager block -->
...
   <connections>
      <idle-timeout>300000</idle-timeout>
      <max-connections>0</max-connections>
   </connections>
...
   <!-- The Thread Manager block -->
...
   <thread-manager>
      <thread-group>
         <name>default</name>
         <priority>5</priority>
         <is-daemon>false</is-daemon>
         <max-threads>1000</max-threads>
         <min-threads>20</min-threads>
         <min-spare-threads>20</min-spare-threads>
      </thread-group>
   </thread-manager>
----------------------
I got this error in my connections log file:

22/05/06 15:02:23 ERROR connections: Exception executing client connection
runner: Could not create enough Components to service your request.
java.lang.Exception: Could not create enough Components to service your
request.
        at
org.apache.avalon.excalibur.pool.DefaultPool.get(DefaultPool.java:133)
        at
org.apache.james.util.connection.ServerConnection.addClientCon
nectionRunner(
ServerConnection.java:215)
        at
org.apache.james.util.connection.ServerConnection.run(ServerCo
nnection.java:
304)
        at
org.apache.james.util.thread.ExecutableRunnable.execute(Execut
ableRunnable.j
ava:55)
        at
org.apache.james.util.thread.WorkerThread.run(WorkerThread.java:90)
----------------------
Regards,
Al.

Send instant messages to your online friends http://asia.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Send instant messages to your online friends http://asia.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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

Reply via email to