Thank you. Actually I had 150 threads and now I have 54. (I have decreased max-connections from 10 to 3)
I have min-threads 1 and spare threads 2. (I think this must decrease allocated threads to 1 thread when they are not used) RemoteDelivery and remotemaneger were already set 1 thread. I have smtp, smtps and pop3s services. I am the only user who uses smtps and pop3s. So I guess it must allocate 1 thread per smtps and pop3s if I do not read or sent emails for some time. -- Best regards, Dima mailto:[EMAIL PROTECTED] Wednesday, October 17, 2007, 12:03:08 PM, you wrote: SB> Dima Retov ha scritto: >> Hello, >> >> I have James running on my server and it works fine. >> I handles emails for dozen of domain. I receive few emails per day. >> I would like to configure James to consume less resources. >> >> When I start James now it starts with 30 or 50 threads. >> >> I would like to keep 1 or 3 threads. SB> You will not able to reduce the number so much. But you can limit it a SB> lot, anyway. >> I tried to tune max-connections and max-thread and I had 2 results >> james was not starting or james was running with same amount of >> threads. >> >> >> It is possible to decrease number of threads? >> How do I do that? SB> First you have to reduce the number of <spoolmanager>/<threads>, the SB> number of RemoteDelivery/<deliveryThreads>, and you have to reduce the SB> number <connections>/<max-connections>30</max-connections>. SB> As the last step you can tune your SB> <thread-manager>/<thread-group>/<max-threads> so that max-threads is at SB> least SB> spoolmanagerthreads+remotedeliverythreads+maxconnections*services SB> (services is pop3+smtp+ any other listening service you may have) SB> If you really have few incoming connections I would try with 1 SB> spoolthreads, 1 remote delivery, 3 max-connections and assuming you only SB> have pop3 and smtp you can use 1+1+3*2 = 8 max-threads (but you can even SB> use a bigger number as they won't be allocated if they are not declared) SB> Stefano SB> PS: if JAMES does not start you should check the logs and report the SB> errors, so we can help. SB> --------------------------------------------------------------------- SB> To unsubscribe, e-mail: [EMAIL PROTECTED] SB> For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
