multi instance of workflow wcf in memory -
i designed 2 wcf long running workflow (long life) names 'wcf a' , 'wcf b'.
i have loop in 'wcf a' , i'm sending message 'wcf b' in per execution of loop. might exist instances of 'wcf b' in memory until 'wcf b' got stop message. both wcf , b hosted in windows service. @ first executing windows service ok after time not work , monitored in task manager don't using cpu usage.
where problem from?
it depends, monitoring cpu usage not tell anything. be:
- deadlock happened somewhere in loop, i.e. maybe each instance use shared objects?
- channel gets faulted (because time outs, exceptions etc) execution cannot go through.
- depends on object of each instance of wcf b holds, might reached os limit, (for example: number of opened file)
from question guess may find debugging services difficult, try following:
- enable wcf logging , there plenty entries on or google
- attach debugger service, if find gives random entry point, can try put debugger.launch() call @ onstart overload of service
- log file call
- start service console application
hope helps.
Comments
Post a Comment