Hey I'm doing the following in custom code using the K2 SDK:
using (Connection K2Con = new Connection())
{
ConnectionSetup K2ConSetup = new ConnectionSetup();
K2ConSetup.ConnectionParameters.Add(ConnectionSetup.ParamKeys.Host, ConfigurationManager.AppSettings["K2Server"]); // server name on the network
K2ConSetup.ConnectionParameters.Add(ConnectionSetup.ParamKeys.TimeOut, ConfigurationManager.AppSettings["K2ConnTimeOut"]); // set to 2
//Open a connection to the K2[blackpearl] server
K2Con.Open(K2ConSetup);
K2Con.ImpersonateUser(Profile.GetValue(
"WindowsLogin"));nameLabel.Text = K2Con.User.Name;
Worklist K2WorkList = K2Con.OpenWorklist("ASP");
K2Con.RevertUser();
... more code
K2Con.Close()
}
Every time this code is run the K2Process.exe service keep grabbing more memory about 8Kb at a time and won't give it back to the OS. Is there something I'm missing in the above to make the K2Process.exe give back memory to the OS?
Once it starts to consume around 900MB of ram we have to restart the service b/c it's non responsive.
Thanks in advance,
Scott