Recycling in COM+ applications

I've been dealing with some problems in a COM+ application I inherited a few years ago.  The problems started up after we upgraded the servers with new hardware and are using Windows 2003 Server to host the application. 

It seems that there are some new recycling features in COM+ in Windows 2003 that I was not familiar with until I found them on Tuesday.  With these recycling features, a new DLLHost is started up to service requests after a criteria is met.  The old DLLHost processes pending requests while new requests go to the the new DLLHost process.  The old DLLHost process is shut down once the process detects that all external references to objects in the process are removed or when the expiration time-out value is detected. 
The four criteria that I have found for recycling are:
  • RecycleLifetimeLimit.  This is the maximum number of minutes a process runs before it is recycled.  Valid numbers are 0 to 30,240.  The values are in minutes.  The default value of 0 means that the process is not recycled based on this criteria.
  • RecycleMemoryLimit.  This is the maximum amount of process memory (in kilobytes) before a process is recycled.  If the process memory exceeds the specified memory for more than one minute, the process recycle process begins.  The defualt value of 0 means that a the process will not recycle based on this criteria.  Valid numbers are 0 to 1,048,576.
  • RecycleCallLimit.  This is the maximum number of calls that applications accept before a recycle takes place.  Valid numbers are 0 to 1,048,576.  The default value of 0 means that the process is not recycled based on this criteria.
  • RecycleActivationLimit.  This is the maximum number of application object activations before a process is recycled.  Valid numbers are 0 to 1,048,576.  The default value of 0 means that the process is not recycled based on this criteria.
I have decided to use the RecycleLifetimeLimit and set it to 1440 (1 day) to see how things work.  Wish me luck.......................

1 Comment

  • Good Luck. Had the same problem with upgarding to win 2003 when there were no problems on win 2000. Ended up having to recycle about every 45 minutes.

Comments have been disabled for this content.