Re: JITA And Object Pooling

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Ram,

> The thing is, I defined my ServicedComponent as
> JustInTimeActivation(true)
> and at every method I need, I defiend:
> ContextUtil.DeactivateOnReturn=true
> And defined the min pool size to 5 and max to 10.
> And all is well - when I look at the component services manager (MMC) I
> see that after each call the number of objects activated returns to 0
> all the time, but the number of object just keeps on increasing.
> Doesnt the JITA returns my objects to the pool after each deactivation?

Yes, it does. If it didn't, you'd deadlock when the pool reached the maximum
size.

What you see is that the "Objects" statistic in the component services
manager doesn't actually mean number of objects, but rather the existing
number of connections; that is, the number of client side stubs connected to
the application, whether they are attached to an active object or not. What
you see is that you're probably ending up creating stubs even if they are
not needed, and those will drop after a gc (that happens because you're not
reusing the client side references to the objects bur rather discarding
them).

--
Tomas Restrepo
tomasr@xxxxxxxx
http://www.winterdom.com/


.



Relevant Pages

  • Re: Limit number of COM+ sessions
    ... I changed the Max Pool size to 1 through the Component Services ... own (the client) process. ... You configure your component to run as Server or as Library by applying the ... Only Server types can be pooled, object pooling can be configured by ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Thread info
    ... > client, now when I close the applet and open another one it creates the ... is common practice for a server to have a thread pool. ... a thread is selected from the pool to service that client. ... Is there a reason you need a continuous connection and that a request-based ...
    (comp.lang.java.programmer)
  • Re: I cant create thread more than 256 on Redhat 9
    ... So you don't need one thread for each client, ... aren't any practical 'process pool' servers that use a pool of processes the ... same way a thread pool server uses a pool of threads. ... of sharing file descriptors but it's also the difficulty of managing client ...
    (comp.os.linux.development.apps)
  • Re: COM+ object not being released back to the pool
    ... > are exposing the interface methods, ... > Now in my mc++ winform client, ... Now when the object reference gets released, ... If you want the object to get released to the pool deterministically, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Application Flow / security issues
    ... impersonation and makes it possible for the server process to access remote ... resources while acting as the client." ... because i assume the root of this problem is the application pool. ... You can set impersonation in the web.config. ...
    (microsoft.public.dotnet.framework.aspnet.security)