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:

  1. deadlock happened somewhere in loop, i.e. maybe each instance use shared objects?
  2. channel gets faulted (because time outs, exceptions etc) execution cannot go through.
  3. 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:

  1. enable wcf logging , there plenty entries on or google
  2. attach debugger service, if find gives random entry point, can try put debugger.launch() call @ onstart overload of service
  3. log file call
  4. start service console application

hope helps.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -