Hi there ...

We find an interesting issue with IIS and COM+ when using remoting and
more than one thread. IIS "hangs" with 0% CPU !

To describe the situation more fully :

We are using COM+ to manage all our business/data objects and can either
use DCOM or remoting to talk to these objects. Using DCOM works fine, even
when running more than one thread (from the client) to do a batch process.
Using IIS also works fine when only using 1 thread, but as soon as more
than 1 thread is used, IIS hags up and CPU usage goes to 0. (The only way
to get IIS working again is to restart service)


Attaching to, and debugging the aspnet_wp.exe process yielded the
following information when the process is paused:
The break always come up on code that is trying to instantiate an object
(not any specific one), and the call stack looks as follows:

MyObject.Instantiate ->

mscorlib.dll!
System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK
(System.Type serverType, System.Object[] props, bool bNewObj) + 0x4b bytes

->
system.enterpriseservices.dll!
System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance
(System.Type serverType) + 0x3b bytes

->
system.enterpriseservices.dll!
System.EnterpriseServices.ServicedComponentProxy.CleanupQueues(bool bGit)
+ 0x5f bytes

->
system.enterpriseservices.thunk.dll!
System.EnterpriseServices.Thunk.Proxy.RevokeObject(int cookie) + 0x80 bytes


... and there everything sits, doing absolutely nothing !

If anyone can help it would be much appreciated - please ask if there is
anything that is not clear.

Thanks

Bryan Symons

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

Guerrilla ASP.NET, 10 Nov 2003 in London and 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnet

Guerrilla .NET, 8 Dec 2003, in Los Angeles
http://www.develop.com/courses/gdotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to