Archived
This forum has been archived. Please start a new discussion on GitHub.
ConnectionMonitor
laotee
in Help Center
How can I create the object of IceInternal.ConnectionMonitor and release it?
I only start the client ,so don't connect.I find there is a new thread in the client .it's name is Ice.ConnectionMonitor .How was the ConnectionMonitor created ,and how to release it?
I only start the client ,so don't connect.I find there is a new thread in the client .it's name is Ice.ConnectionMonitor .How was the ConnectionMonitor created ,and how to release it?
0
Comments
-
Hi,
You shouldn't create or destroy it manually, it's managed by the Ice communicator instead.
It's started when the communicator is initialized and released when the communicator is destroyed. It's used by the Ice runtime to shutdown iddle connections (see the Chapter 33: Connection managemenet for more information) and enforce AMI timeouts. You can disable it with the Ice.MonitorConnections property. See the description of this property in Appendix C of the Ice manual.
Benoit.0 -
Why do you think it could be leaking? (the thread should be destroyed when the communicator is destroyed.)
To answer your question, I don't believe there was any memory leaks related to the connection monitor thread in Ice 1.5.1. If you suspect such a problem however, I would recommend first to upgrade to the latest Ice 2.1.2 and see if you can reproduce it.
Benoit.0
