Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes, you should do this.</p> <blockquote> <p>Each communicator creates two thread pools:</p> <p>The client thread pool services outgoing connections, which primarily involves handling the replies to outgoing requests and includes notifying AMI callback objects. If a connection is used in bidirectional mode, the client thread pool also dispatches incoming callback requests. The server thread pool services incoming connections. It dispatches incoming requests and, for bidirectional connections, processes replies to outgoing requests. By default, these two thread pools are shared by all of the communicator's object adapters. If necessary, you can configure individual object adapters to use a private thread pool instead.</p> </blockquote> <p>The number of threads is only one by default. So you may want to enlarge it.</p> <p>Change these numbers in three ways:</p> <ol> <li>command line arguments</li> <li>hard code</li> <li>config file</li> </ol> <p><strong>Hard Code example</strong>:</p> <pre><code>protected void initProperties(Ice.Properties iceProperties) { iceProperties.setProperty("Ice.Override.ConnectTimeout", "70"); iceProperties.setProperty("Ice.ThreadPool.Client.Size", "100"); iceProperties.setProperty("Ice.ThreadPool.Client.SizeMax", "1000"); iceProperties.setProperty("Ice.ThreadPool.Client.StackSize", "131072");//128k iceProperties.setProperty("Ice.ThreadPool.Server.SizeMax", "1000"); iceProperties.setProperty("Ice.ThreadPool.Server.StackSize", "131072"); iceProperties.setProperty("Ice.MessageSizeMax", "102400"); } protected void init() { Ice.Properties iceProperties = Ice.Util.createProperties(); initProperties(iceProperties); Ice.InitializationData initData = new Ice.InitializationData(); initData.properties = iceProperties; ic = Ice.Util.initialize(initData); communicators.add(ic); } </code></pre> <p>See this:</p> <ul> <li><a href="http://doc.zeroc.com/display/Ice/Using+Configuration+Files" rel="nofollow">http://doc.zeroc.com/display/Ice/Using+Configuration+Files</a></li> <li><a href="http://doc.zeroc.com/display/Ice/Thread+Pools" rel="nofollow">http://doc.zeroc.com/display/Ice/Thread+Pools</a></li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload