all groups > dotnet performance > september 2007 >
You're in the

dotnet performance

group:

.Net Remoting performance issue


.Net Remoting performance issue Fred
9/4/2007 4:54:03 AM
dotnet performance:

We are currently facing an issue with .Net Remoting connected application,
here is the situation:

We have a central server running some windows services who host some
components exposed with .Net Remoting.

One of them receive lot of calls, an average of 50 calls per second; it
seems that when we go over that amount, it’s an average, the service stop
responding to the client’s requests. We receive the following message “No
connection could be made because the target machine actively refused it” just
like when a service is not running or badly configured.

It’s important to know that when we receive the error message, the CPU usage
of
the server is no more than 50% meaning the CPU isn’t overloaded.

We have tried to increase the thread pool maximum count but that has no
effect.
Its look like the .Net Remoting call queue is full and cannot accept more
requests.

Is there somebody knowing if there is a limit in term of calls to a .Net
remoting?

Can we change that limit? Or something that can help us ?

Many Thanks

Re: .Net Remoting performance issue Doug Semler
9/4/2007 11:34:42 AM
[quoted text, click to view]

Remoting calls are serviced on the threadpool, and I have seen thread
starvation before. That being said, I can't remember if there was a
hard limit for the number of simultaneous remoting calls.

That being said, If your service is receiving 50 calls per second, it
sounds like your remoting interface is a little chatty. (unless, of
course, you have 50 clients accessing it at one call per second <g>)
Re: .Net Remoting performance issue Fred
9/5/2007 1:12:01 AM

[quoted text, click to view]

We have currently more than 400 clients concurrently connected to the
service and sometimes we go over 70 calls second. It's a huge amount clearly
but before starting a split of the services i want to know if I m really
reaching a limit or if I still have something to do to solve the current
issue. I had myself not see a limit somewhere in the doc and before we reach
that huge amount of clients we had never facing that kind of issue (hopefully
Re: .Net Remoting performance issue Doug Semler
9/5/2007 9:02:19 AM
[quoted text, click to view]

I would watch the .NET CLR performance counters and the TCP
performance counters (and maybe your Process's counters) to see if
there's anything that sticks out to you.

Also, run a netstat -a the machines. I'm wondering if you haven't hit
the limit of socket connections, and you have a bunch that are in the
TIME_WAIT state...I can't remember offhand the socket allocation
that .NET uses for remoting, but the default limit is something like
4000, and the default TIME_WAIT timeout is something like 120 seconds,
which means that once you hit the limit you can basically start
openning about 33 connections per second...

(more info: http://support.microsoft.com/kb/Q149532)
Re: .Net Remoting performance issue Yuancai (Charlie) Ye
9/6/2007 9:33:44 PM
You got performance problem?

See SocketPro for super performance at
http://www.udaparts.com/document/articles/fastsocketpro.htm




[quoted text, click to view]

AddThis Social Bookmark Button