Results 1 to 4 of 4

Thread: MemoryLimitException with sequences

  1. #1
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    MemoryLimitException with sequences

    Hi,

    I am trying send a matrix of double from client to server, i have seen in doc that the best way to do this is with sequences, something like this because the arrays arent implemented in slice (is true??):

    module Demo
    {

    sequence<double> Flotantes;
    sequence<Flotantes> Matriz;
    interface Suma
    {
    double sumatorio(Matriz tabla);
    };

    };

    After that i have tried with different sizes but the max. size that i could set in the matrix is 361*361 (130321 positions), i have tried matrix arent square 140*1000 i.e. but the client throw the same exception MemoryLimitException.

    .¿What is this limit in bytes or MB?
    .¿Is possible increment this limit?

    Thanks
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  2. #2
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    See http://www.zeroc.com/doc/Ice-3.3.1/m....11.html#51122 for details on how to increase the maximum message size.

    i have seen in doc that the best way to do this is with sequences, something like this because the arrays arent implemented in slice (is true??):
    Yes, you should use sequences for this. Depending on your architecture, and if you need the performance and you are using C++, you could try using the array mapping for sequences to avoid additional copies of the matrix data. Naturally, this is most useful if you pack the matrix into a single sequence, and not a sequence of sequence.

    See http://www.zeroc.com/doc/Ice-3.3.1/manual/Cpp.7.7.html for details.
    Last edited by matthew; 06-17-2009 at 08:34 AM.

  3. #3
    Yos
    Yos is offline Registered User
    Name: Jose Fernandez
    Organization: University of Malaga (Spain)
    Project: Comparision between Ice VS Corba
    Join Date
    Apr 2006
    Posts
    27

    Property set

    Thank you very much,
    i have set the property by Ice.Config, by console and by code,
    all run ok now
    Jose Francisco Fernández García
    Escuela superior de Informatica de Malaga (España)
    www.informatica.uma.es
    Proyecto fin de carrera "IceVsCorba"

  4. #4
    michi's Avatar
    michi is offline Registered User
    Name: Michi Henning
    Organization: Triodia Technologies
    Project: I have a passing interest in Ice :-)
    Join Date
    Feb 2003
    Location
    Brisbane, Australia
    Posts
    1,055
    You may also find this FAQ of interest.

    BTW, if your matrix is sparse, with the majority of elements with the same value, you can optimize things by only transmitting the elements that don't have the default value. For example, for a large matrix containing mostly zeroes, it can be more effective to only send those elements that are non-zero:

    Code:
    struct MatrixElement {
        short row;
        short col;
        double val;
    };
    
    sequence<MatrixElement> Matrix;
    Whether this pays off depends on the size of the values in the matrix, and how many of them do not have the default value. (The above adds four bytes of overhead to each non-default element.)

    Cheers,

    Michi.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. ThreadPool.cpp:733: Ice::MemoryLimitException
    By hariss in forum Help Center
    Replies: 5
    Last Post: 11-19-2009, 10:05 AM
  2. Orphaned callback object after MemoryLimitException
    By Andrew S in forum Bug Reports
    Replies: 5
    Last Post: 02-12-2009, 10:21 AM
  3. Sequences with slice2cs 3.3.0
    By die_gestalt in forum Help Center
    Replies: 4
    Last Post: 08-14-2008, 12:40 PM
  4. Ice::MemoryLimitException
    By xdm in forum Help Center
    Replies: 2
    Last Post: 04-11-2004, 11:04 AM
  5. sequences syntax
    By panic in forum Help Center
    Replies: 1
    Last Post: 12-04-2003, 08:55 AM

Posting Permissions

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