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

Lluis Sanchez lluis at ximian.com
Thu Apr 27 06:12:19 EDT 2006


Hi,

The code you sent is not of much help. What we need is a simple (as
simple as possible) application we can compile and use to reproduce the
problem, with no external dependencies (specially Oracle).

Lluis.

El jue, 27-04-2006 a las 18:29 +0900, Uuganbayar escribió:
> 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.
> 
> 
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list




More information about the Mono-devel-list mailing list