Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 06-28-2005
ehero's Avatar
ehero ehero is offline
Registered User
 
 
Join Date: Mar 2005
Location: Beijing, China
Posts: 9
A question about memory limit in Ice.

HI,
When I use a function with an argument marshalling with more then 2M Bytes, memory limit exception happens. Can anybody help me?
I define the Blob type as follows,
sequence<byte> Blob;
In my ice interface VegaDB, a method is defined as follows,
void setBlob(string table, string szColumn, string szWhere, Blob blob);

When I call setBlob with a blob more than 2M Bytes, the memory limit exception happens.
I'm sure the servant implementation of setBlob is right because I just test it.
Why?
Reply With Quote
  #2 (permalink)  
Old 06-28-2005
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,534
You need to increase the maximum message size Ice can transfer. You can do this by setting the Ice.MessageSizeMax property (default is 1MB). See the manual for more information on this property.

Benoit.
Reply With Quote
  #3 (permalink)  
Old 06-28-2005
ehero's Avatar
ehero ehero is offline
Registered User
 
 
Join Date: Mar 2005
Location: Beijing, China
Posts: 9
thank u very much.

Can u tell me how many connections does the Servant Program support in default?

I've found that when two clients connect to the server, the application slows down.
__________________
I'm ehero.
I love database and middleware.
Reply With Quote
  #4 (permalink)  
Old 06-28-2005
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
There is no inherent limit for how many connections Ice can support. Whether or not you will get a slow-down with two connections depends on your application. Obviously, if both connections always send large amounts of data for the server to process, then your application will slow down, compared to having just one connection sending large amounts of data. If the connections are mostly idle, then there is no slow-down.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
A question about decrease memory laotee Help Center 5 06-27-2005 06:25 AM
a question about memory laotee Help Center 8 06-22-2005 11:17 PM
Mismatched memory question stephan Help Center 6 03-28-2005 09:14 PM
TCP connection limit in WinXP SP2 mario Help Center 2 01-27-2005 06:56 PM
question about memory mgmt Baloo Help Center 2 10-01-2004 07:02 PM


All times are GMT -4. The time now is 02:24 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.