Code:
public void createICEagent()
{
string ConnectIP=string.empty;
IList lstIp=new ArrayList();
Ice.Communicator o_icecomm = null;
o_icecomm = Ice.Util.initialize(ref arg);
lstIp.Add("172.16.16.16");
lstIp.Add("172.16.16.12");
lstIp.Add("172.16.16.13");
lstIp.Add("172.16.16.15");
for(int i=0;i<lstIp.Count;i++)
{
try
{
ConnectIP=lstIp[i];
Ice.ObjectPrx obj = o_icecomm.stringToProxy(ConnectIP);
PCManagerPrx PCmanager= PCManagerPrxHelper.checkedCast(obj);
}
catch
{
}
}
when I executed this code ,the memory increase 4 times.because I create 4 clients.