Archived

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

Ice Service does not return if the size of the object is huge

Ice Version : Ice 3.1

Ice Client : Java in JRockit JDK 1.4
Ice Service : C++
Ice Message Size Max : 102400

Ice servant works fine if the size of the returned object is small. Client does not get back the response if the size of the retunred object from the Ice Servant is huge. But the servant completes its job and gives back the control to Ice. Size of the returned object could be of 500 MB.
Here is the Network & Protocol Trace...
Please let me know if you need any other info to help me on this.
[ Protocol: sending request
message type = 0 (request)
compression status = 0 (not compressed; do not compress response, if any)
message size = 81273437
request id = 2
identity = CubeTrainman
facet =
operation = createContentSet
mode = 0 (normal)
context = ]
[ Protocol: sending close connection
message type = 4 (close connection)
compression status = 1 (not compressed; compress response, if any)
message size = 14 ]
[ Network: shutting down tcp connection for writing
local address = 10.160.36.52:55168
remote address = 10.160.36.49:14060 ]
[ Network: closing tcp connection
local address = 10.160.36.52:55168
remote address = 10.160.36.49:14060 ]
[ Protocol: received reply
message type = 2 (reply)
compression status = 0 (not compressed; do not compress response, if any)
message size = 81217701
request id = 2
reply status = 0 (ok) ]
[ Protocol: sending close connection
message type = 4 (close connection)
compression status = 1 (not compressed; compress response, if any)
message size = 14 ]
[ Network: shutting down tcp connection for writing
local address = 10.160.36.52:55169
remote address = 10.160.36.49:35995 ]
[ Network: closing tcp connection
local address = 10.160.36.52:55169
remote address = 10.160.36.49:35995 ]

Comments

  • matthew
    matthew NL, Canada
    You are running into your maximum message size limitation. The configuration property Ice.MessageSizeMax sets the maximum size of the in kb of a protocol message that is accepted or sent by the Ice runtime. If you exceed this you will get a MemoryLimitException. See the Ice manual for details.