Archived

This forum has been archived. Please start a new discussion on GitHub.

How do we Set Ice Message Size???

In order o set set the message size we use the the MessageSizeMax property at runtime (./server --Ice.MessageSizeMax=1).

When we set this property to <=1MB , we get the desired result. (i.e put a size of 1KB and tried to fetch data > 1KB over Ice, it failed (Ice Memory limit exceeeded))

When we set this property to around 10MB (Ice.MessageSizeMax=102400) and tried to fetch data < 10MB it fails.

We are trying to fetch 10000 records with each row of approximately 50 bytes in size from database. We are successful in fetching upto 5000 records with Ice.MessageSizeMax=1024. If we tried to fetch 6000 records, it fails(Ice Memory limit exceeeded))

We would like to know the correct procedure

Thanks and Regards
Aswani

Comments

  • Could you let us know what the exact exception was, and hopefully submit a stack trace? It's possible that your server simply ran out of memory, but it's difficult to tell without more info. Which version of Ice are you using, and with what language?

    Cheers,

    Michi.
  • bernard
    bernard Jupiter, FL
    Note that you need to set this property in both your client and your server.

    Best regards,
    Bernard