[Mono-dev] MONO 1.1.14 Remoting server: CPU & Memory usage

Uuganbayar uugan at mobicom.mn
Thu Apr 27 05:29:50 EDT 2006


Hello,

Thanks for your quick response :-)

To understand quickly I have attached source codes (banklib.zip). It has a
connection to Oracle 10g and socket server.

I declared my remoting server as following: 

public class Bank : MarshalByRefObject, IBank


Then I made a host application like this (on Linux):

static void Main(string[] args) {
	ChannelServices.RegisterChannel(new TcpServerChannel("BankChannel",
1121));
	
RemotingConfiguration.RegisterWellKnownServiceType(typeof(banklib.Bank	),
"Bank", WellKnownObjectMode.Singleton);

	Console.WriteLine("Press Enter to exit...");
	Console.ReadLine();
}


On the client side (from Windows):
static void Main(string[] args) {
	banklib.IBank bank = null;
	ChannelServices.RegisterChannel(new TcpChannel());

	try {
		bank =
(banklib.Bank)Activator.GetObject(typeof(banklib.Bank),
"tcp://127.0.0.1:1121/Bank");
			}
	catch (Exception ex) {
		Console.WriteLine(ex.ToString());
	}

	if (bank == null) {
		Console.WriteLine("Cannot connect to Banking Server.");
		return;
	}
	else {
		Console.WriteLine("Banking server connected");
		Console.WriteLine("Your balance: " +
bank.CheckBalance("99099121", "2934"));
	}
}

Regards,
Uugan


-----Original Message-----
From: Lluis Sanchez [mailto:lluis at ximian.com] 
Sent: Thursday, April 27, 2006 6:13 PM
To: Uuganbayar
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] MONO 1.1.14 Remoting server: CPU & Memory usage

El jue, 27-04-2006 a las 16:26 +0900, Uuganbayar escribió:
> Hello,
> 
>  
> 
> I have organized a simple .NET Remoting server on the Linux Advanced
> Server 4.0 using mono 1.1.14. Just, it receives XML request, and sends
> back a string response.
> 
> When I send a request to this server from my PC (windows XP), OS
> memory and CPU grows up to 100% within short time. 
> 
> What is the reason, why it grows up so fast, please help me? 

Without more information it is impossible to help you. What makes you
think it is a problem in Mono and not in your application? can you
provide a test app that can be used to reproduce the problem?

Lluis.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: banklib.zip
Type: application/x-compressed
Size: 4865 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060427/bca8694d/attachment.bin 


More information about the Mono-devel-list mailing list