English 中文(简体)
单一吨物体的可测量性问题(重温)
原标题:Scalability issue with singleton object (remoting)

单一吨物体的可变性问题

Hi All,

We have a singleton object hosted in windows service. It works fine untill the number of simultaneous client requests exceeds some magical number around 100. After this all new calls seems to be queued and processed one by one only when one of current connections is released.

如果有人能告诉我们如何消除这一限制,我们将非常感激。

At the time when it happens the number of threads (according to Task Manager) is about 120 so thread pooling shouldn’t be an issue (there are 2 CPUs which makes up to 512 threads, if I correctly understand). There is also plenty of free memory (the process allocates about 200-300 MB and there is still more than 1GB of free memory)

我们使用网络框架3.5

下面是 app片。

    <configuration>
  <system.runtime.remoting>
    <application>
      <service>
        <wellknown type="CompanyName.Server.ServerStub, MyServer" objectUri="MyServer" mode="Singleton"/>
      </service>
      <channels>
        <channel port="3210" ref="tcp">
          <serverProviders>
            <formatter ref="binary" typeFilterLevel="Full"/>
          </serverProviders>
        </channel>
      </channels>
    </application>
  </system.runtime.remoting>
</configuration>
问题回答

通常只有1个单一州目标。 它处理所有要求。 在大约100项请求之后,你可能会注意到一些缓冲器正在填充,从而放缓。





相关问题
Requested Service not found

I have a windows service application which works using remoting. It is used to display baloon tip. However, it sometimes throws this error: Exception :Requested Service not foundInner Exception : ...

How to handle IP Address rerouting with .NET Remoting

I have a process within a network that wants to talk to a service on another network. So I have two computers: Client Server 172.X.X.X reroute-> 172.X.X.X to 10.0.1.X ...

Where is Transparent Proxy pointing to?

I am using .Net Remoting. I have a service exposing a singleton class that a client on another machine can register with, so that the server can broadcast messsages to all registered clients. ...

.NET Remoting over WCF?

Why would you use .NET Remoting over WCF? I understand that WCF has its distinct advantages, but what advantages would .NET Remoting offer you over the more modern WCF technology?

热门标签