Performance differences Remoting with http and binary

dotnet framework

    Next

  • 1. Remoting Windows Forms and Events
    I have 2 windows forms applications that I would like to talk to each other. Basically, I would like 1 exe file to send a message to the other and an event be fired on the recieving client. Im very new to .net remoting and was wondering if anybody on this news group could help me out and maybe post or point me to some example vb.net code? Ideally I would like form 1 (server) to contain a button which once clicked, fired an event on the recieving exe win form client and this client popped up a messgabe box saying that the request was recieved via the tcp (as opposed to http) remoting. Not even sure if using remoting for this is even the best way to proceed. Hope someone can point me in the right driection. Any help or advice would be very much appriciated. Paul.
  • 2. Is remoting the solution?
    Hello Everyone, I would like to prohibit multiple instances of my application. Instead, if someone starts the app on a machine, where there's allready another instance running, I'd like the commandline args of the second instance to be passed to the first instance. So far I've come up with: 1. check for running instances 2. if found send command line args via IPC/Named Pipes and exit My question basically is: Is remoting the method to use in this case? Is there an easier way? Any help is highly appreciated!

Performance differences Remoting with http and binary

Postby TWF4eA » Fri, 27 Oct 2006 14:31:02 GMT

I use .Net Framework 1.1 with Remoting channel= http and formatter=binary.
The remoting server components are hosted as webservice in IIS.
The client application is a WinForms application for file upload and download

I have serveral performance differences, why ?
The quantity of data is say 1 GB downloaded and uploaded in smaller blocks 
(< 30 MB)

On my Network (Slow Server):
Upload and download performance is nearly identical for 1 GB it needs 20 
minutes

On the the customer network (Notebooks and Desktops are connected on the 
same network socket):
When the client (Desktop or Notebook) uploads 1 GB of data it needs 10 
minutes.
When a client (Notebook) downloads 1 GB it needs 20 minutes When a client 
(Desktop) downloads 1 GB it needs 60 minutes

The problem is the bad performance of the desktop machines.
The hardware of the desktops is faster than the notebooks.


Answers to any of this questions is delighted

Which Network-Settings affect the performance for this remoting 
configuration ?

How can different services on notebook and desktop affect the performance ?

Can any remoting settings for the client influence the performance ?

How does this remoting configuration access the network ?

Any other idea or experience ?

Thanks Max


Re: Performance differences Remoting with http and binary

Postby Spam Catcher » Sat, 28 Oct 2006 03:40:07 GMT

=?Utf-8?B?TWF4eA==?= < XXXX@XXXXX.COM > wrote in




There might be network congestion on the Desktop LAN segment?

Have you tried running a bandwidth test between the server and the 
desktops?

Re: Performance differences Remoting with http and binary

Postby TWF4eA » Sat, 28 Oct 2006 04:13:01 GMT

The network support team tested the network and says the network is in good 
condition. With a different network cards on the desktop the download needs 
40 minutes an nobody knows why and what setting can influence this.






Re: Performance differences Remoting with http and binary

Postby Spam Catcher » Sat, 28 Oct 2006 10:15:27 GMT

=?Utf-8?B?TWF4eA==?= < XXXX@XXXXX.COM > wrote in




The card could be faulty... or come with poorly written drivers. That could 
account for some of the performance difference.

I would run some independent performance tests using a utility like TTCP... 
if the results are consistent with your remoting issues, then you have a 
problem with the network card. Perhaps the card is faulty... or the drivers 
are poorly written.

Re: Performance differences Remoting with http and binary

Postby TWF4eA » Sun, 29 Oct 2006 00:17:01 GMT

The tests are made with 3 different desktops and 3 different Notebooks, each 
with Network cards of the same type 

Thanks for your effords, I am glad to get additional advices

Max






Similar Threads:

1.Performance differences with http channel and binary formatter

I use .Net Framework 1.1 with Remoting channel= http and formatter=binary. 
The remoting server components are hosted as webservice in IIS.
The client application is a WinForms application for file upload and download

I have serveral performance differences, why ?
The quantity of data is say 1 GB downloaded and uploaded in smaller blocks 
(< 30 MB)

On my Network:
Upload and download performance is nearly identical for 1 GB it needs 20 
minutes


On the the customer network (Notebook and Desktop are connected on the same 
network socket):
When the client (Desktop or Notebook) uploads 1 GB large quantity of data it 
needs 10 minutes.
When a client (Notebook) downloads 1 GB it needs 20 minutes
When a client (Desktop) downloads 1 GB itneeds 60 minutes

The problem is the bad performance of the desktop machines. 
The hardware of the desktops is faster than the notebooks.

Which Network-Settings affect the performance for this remoting 
configuration ?
How can started services affect the performance ?
Can any remoting settings for the client influence the performance ?
Any other idea or experience ?

2.Remoting performance binary over HTTP

3.Remoting Performance http - binary

I use .Net Framework 1.1 with Remoting channel= http and formatter=binary. 
The remoting server components are hosted as webservice in IIS.
The client application is a WinForms application for file upload and download

I have serveral performance differences, why ?
The quantity of data is say 1 GB downloaded and uploaded in smaller blocks 
(< 30 MB)

On my Network (Slow Server):
Upload and download performance is nearly identical for 1 GB it needs 20 
minutes

On the the customer network (Notebooks and Desktops are connected on the same 
network socket):
When the client (Desktop or Notebook) uploads 1 GB of data it 
needs 10 minutes.
When a client (Notebook) downloads 1 GB it needs 20 minutes
When a client (Desktop) downloads 1 GB it needs 60 minutes

The problem is the bad performance of the desktop machines. 
The hardware of the desktops is faster than the notebooks.


Answers to any of this questions is delighted

Which Network-Settings affect the performance for this remoting 
configuration ?

How can different services on notebook and desktop affect the performance ?

Can any remoting settings for the client influence the performance ?

Can a network-sniffer give hints for the problem, which tool can I use and 
how ?

How does this remoting configuration access the network ?

Any other idea or experience ?

Thanks Max

4.End of Stream encountered...Binary Formatter with HTTP Remoting

I have an application that remotes bitmap images stored as byte arrays.  It 
works for the first few calls but then I get a SerializationException: End if 
Stream encountered before parsing was completed.  I am using the HTTP channel 
with a binary formatter over SSL and hosted in IIS.  The IIS logs show HTTP 
response code 500 - Internal Server Error followed by a 400 - Bad Request.  I 
will try and get more details but wanted to post now in case someone here can 
notice something obvious that I am overlooking.

This is my web.config:

<system.runtime.remoting>
	<application>
		<service>
			<wellknown mode="SingleCall" type="com.MyCompany.MyRemotedClass, 
CommonRemoted" objectUri="MyRemotedClass.rem" />
		</service>
		<channels>
			<channel ref="http">
				<serverProviders>
					<formatter ref="binary" />
				</serverProviders>
			</channel>
		</channels>
	</application>
	<customErrors mode='off' />
</system.runtime.remoting>

This is my client config:

<system.runtime.remoting>
	<application>
		<client>
			<wellknown type="com.MyCompany.MyRemotedClass, CommonRemoted"
				url="https://mywebsite/MyRemotedClass.rem" />
		</client>
		<channels>
			<channel ref="http">
				<clientProviders>
					<formatter ref="binary" />
				</clientProviders>
			</channel>
		</channels>
	</application>
</system.runtime.remoting>

Thanks

5.COM Interop & HTTP Binary Remoting

6. COM Interop - HTTP Binary Remoting

7. Why configure Soap formatter for HTTP Binary Remoting - .NET Framework 1.1



Return to dotnet framework

 

Who is online

Users browsing this forum: No registered users and 1 guest