HighTechTalks DotNet Forums  

Server load question

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss Server load question in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ira Gladnick
 
Posts: n/a

Default Server load question - 12-10-2006 , 01:54 AM






Say you create a client proxy object SomeObject via a call to
Activator.GetObject, and then call a method on SomeObject.

Is there a live connection or other resource being kept in use on the
server for the whole time that SomeObject is still alive on the client
end? If you store SomeObject in a static variable or a class level
variable and don't dispose of it, but don't actually do any additional
calls on it, could that potentially result in an extra load on the
server?

Would there be any difference in this regard between whether the server
class was a Singleton or Single Call?

Not necessarily saying that I am looking to do this. Mostly just
curious.


Reply With Quote
  #2  
Old   
Spam Catcher
 
Posts: n/a

Default Re: Server load question - 12-10-2006 , 12:00 PM






"Ira Gladnick" <IraGladnick (AT) yahoo (DOT) com> wrote in
news:1165733646.261153.54740 (AT) 80g2000cwy (DOT) googlegroups.com:

Quote:
Would there be any difference in this regard between whether the server
class was a Singleton or Single Call?

Not necessarily saying that I am looking to do this. Mostly just
curious.

If you host in IIS, singleton vs single call doesn't seem to make much
difference.

Connections are maintained if HTTP-Keep-Alives are enabled, but the
remoting channels do not seem to respect it (as such, connections
continually pile up). So it's best to disable HTTP-Keep-Alives if you're
hosting in IIS.

As mentioned previously, the built in HTTP channels open a new connection
per call. I *think* TCP may do the same, but you'll have to check with a
port scanner (TCPTrace is a good app).

If you want more efficent channels, there are 3rd Party ones like Geniune
Channels.


Reply With Quote
  #3  
Old   
Mahesh Deo
 
Posts: n/a

Default RE: Server load question - 02-27-2007 , 07:56 AM



If you have a proxy object on the client and you are calling methods on that
there is a remoting fraework whick is transfering our calls. Client proxy and
server both have different life time becaue garbage collector present on one
machine can not know the state of the object on another machin. so if your
client proxy is alive on client but it may happen that actual server objct is
dead on the server, so another handy thing which we use to solve this problem
is lifetimeleas service using which we can tell remoting framework to keep
alive server object for specifictime. So server will release your remote
server object after 5 min(this is the default value which you can chage) so
there is no load on the server even if you are keeping client proxy alive.

now the second question

the probelm of lifetime of server objects comes if you are using singleton
object and in case of single call object sever is active till the completion
of your method calll.



"Ira Gladnick" wrote:

Quote:
Say you create a client proxy object SomeObject via a call to
Activator.GetObject, and then call a method on SomeObject.

Is there a live connection or other resource being kept in use on the
server for the whole time that SomeObject is still alive on the client
end? If you store SomeObject in a static variable or a class level
variable and don't dispose of it, but don't actually do any additional
calls on it, could that potentially result in an extra load on the
server?

Would there be any difference in this regard between whether the server
class was a Singleton or Single Call?

Not necessarily saying that I am looking to do this. Mostly just
curious.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.