Results 1 to 4 of 4

Thread: A question about memory limit in Ice.

  1. #1
    ehero's Avatar
    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?

  2. #2
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    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.

  3. #3
    ehero's Avatar
    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.

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,860
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 64kBytes limit?
    By hotlips in forum Help Center
    Replies: 9
    Last Post: 05-16-2007, 03:25 PM
  2. A question about decrease memory
    By laotee in forum Help Center
    Replies: 5
    Last Post: 06-27-2005, 05:25 AM
  3. a question about memory
    By laotee in forum Help Center
    Replies: 8
    Last Post: 06-22-2005, 10:17 PM
  4. Mismatched memory question
    By stephan in forum Help Center
    Replies: 6
    Last Post: 03-28-2005, 08:14 PM
  5. question about memory mgmt
    By Baloo in forum Help Center
    Replies: 2
    Last Post: 10-01-2004, 06:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •