Results 1 to 2 of 2

Thread: Compression question

  1. #1
    stephan is offline Registered User
    Name: Stephan Stapel
    Organization: Stephan Stapel
    Project: BristolNG
    Join Date
    Oct 2003
    Location
    Essen, Germany
    Posts
    172

    Compression question

    Hi there,

    I need to transfer rather large blocks of ascii data via Ice ( > 1.5 MB). As these ascii files are easily compressable (down to ~ 50 KB), I enabled compression but discovered that even in this case, the MemoryLimitException is thrown.

    I was assuming that this exception would be thrown only if the data block that really is transfered is too big, not if the data block that is handed to Ice for marshalling (before compression etc.) is too big.

    Is this behaviour desired? I know that I can increase the max message size, but would rather like to avoid this.

    cheers,

    Stephan

  2. #2
    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
    Ice checks the message size during marshaling, and throws an exception as soon as the maximum size has been exceeded. So the maximum message size refers to the uncompressed message size. If we would want it to refer to the compressed message size, then we would first have to marshal all data regardless of size, then compress, and then compare the size.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Question about compression
    By danleepw in forum Help Center
    Replies: 1
    Last Post: 05-04-2010, 05:30 PM
  2. Enforcing compression problem
    By annekat in forum Help Center
    Replies: 2
    Last Post: 05-19-2009, 04:46 AM
  3. Replies: 1
    Last Post: 09-18-2008, 08:44 PM
  4. Replies: 0
    Last Post: 08-18-2008, 04:11 AM
  5. Any benchmarks on using bzip2 compression?
    By wobster in forum Comments
    Replies: 4
    Last Post: 09-19-2004, 09:13 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
  •