Archived
This forum has been archived. Please start a new discussion on GitHub.
How to set the Adapter Thread Pools properties in IceGrid?
Hi,
I did a test:
The Adapter name is Hello in the server,I did a config file config.server
Ice.Default.Locator=DemoIceGrid/Locator:default -p 12000:default -p 12001:default -p 12002
Hello.ThreadPool.Server.Size=1
Hello.ThreadPool.Server.SizeMax=1
Hello.ThreadPool.Server.SizeMax=2
When I used the server that was not in IceGrid,this setting was OK,
but when I put the server in a IceGrid ,these setting was not right,
the logs was :
03/29/07 11:49:59.312 warning: found unknown properties for object adapter 'Hello':
Hello.ThreadPool.Server.Size
Hello.ThreadPool.Server.SizeMax
how to set the adapter thread Pools properties in IceGrid?
thank you!
I did a test:
The Adapter name is Hello in the server,I did a config file config.server
Ice.Default.Locator=DemoIceGrid/Locator:default -p 12000:default -p 12001:default -p 12002
Hello.ThreadPool.Server.Size=1
Hello.ThreadPool.Server.SizeMax=1
Hello.ThreadPool.Server.SizeMax=2
When I used the server that was not in IceGrid,this setting was OK,
but when I put the server in a IceGrid ,these setting was not right,
the logs was :
03/29/07 11:49:59.312 warning: found unknown properties for object adapter 'Hello':
Hello.ThreadPool.Server.Size
Hello.ThreadPool.Server.SizeMax
how to set the adapter thread Pools properties in IceGrid?
thank you!
0
Comments
-
i think Hello.ThreadPool.Server.Size is not a valid property for object adapter 'Hello', and Hello.ThreadPool.Size is the right propery for object adapter 'Hello'.
But when i use Hello.ThreadPool.Size property,Thread pool still doesn't work, and no error information is generated by icrgridnode.
what interesting is that the thread pool works well after i reboot the registry0 -
Hi,
If your server is deployed and managed by an IceGrid node, you need to put the server configuration properties in the server deployment descriptor not in the IceGrid node or registry configuration file. For example:<icegrid> <application name="Simple"> <node name="localhost"> <server id="SimpleServer" exe="./server" activation="on-demand"> <adapter name="Hello" endpoints="tcp" register-process="true"> <object identity="hello" type="::Demo::Hello" property="Identity"/> </adapter> <property name="Hello.ThreadPool.SizeMax" value="2"/> </server> </node> </application> </icegrid>
You can also update the deployment to set additional properties with the IceGrid Admin GUI.
Cheers,
Benoit.0