Home Help Center

How do we Set Ice Message Size???

aswaniaswani Member aswani patchavaOrganization: techvoyant infotech pvt ltdProject: separation of data access layer and business layer
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

  • michimichi Member Michi HenningOrganization: Triodia TechnologiesProject: I have a passing interest in Ice :-) ✭✭✭
    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.
  • bernardbernard Jupiter, FLAdministrators, ZeroC Staff Bernard NormierOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Note that you need to set this property in both your client and your server.

    Best regards,
    Bernard
Sign In or Register to comment.