[jacorb-bugs] [Bug 949] New: Memory issue if size of Message exceed maximum Size
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Tue May 14 13:04:19 CEST 2013
http://www.jacorb.org/cgi-bin/bugzilla/show_bug.cgi?id=949
Summary: Memory issue if size of Message exceed maximum Size
Product: JacORB
Version: 2.3.0
Platform: Other
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: ORB
AssignedTo: jacorb-bugs at lists.spline.inf.fu-berlin.de
ReportedBy: alka.singh at ecitele.com
CC: alka.singh at ecitele.com
We have a system where java component interfaces with c++ component using
Corba.
On java we use jacorb library whereas on the c++ side we use omni-orb.
We have maximum size of 8m set on the c++ side and in java side we have
jacorb.connection.client.retry_on_failure flag set to on.
For one of the cases C++ component attempted to send a Message where size was
more than 8m. Due to this there was a warning message generated on java code:
04-30-2013 00:49:37.789 ClientMe jacorb.giop.c W Abnormal connection
termination. Lost 1 outstanding replie(s)!
This warning goes on for while, and then java process gets into OutOfMemory
Error. On the heap analysis, it was found that ClientGIOPConnection was
maximum consumer.
Has this issue been reported before? I tried with version 3.2 of jacorb, but
problem persist.
I have made following changes to jacorb code, and the fix works for me. Let me
know if the fix is correct. Look for "// fix" to see the new code
1) org.jacorb.orb.giop.ClientConnection.streamClosed
else
{
if (logger.isWarnEnabled())
{
logger.warn("Abnormal connection termination. Lost " +
replies.size() + " outstanding replie(s)!");
}
// fix start
connection.clearMessage();
// fix end
}
2) org.jacorb.orb.giop.GIOPConnection
// fix start
public void clearMessage(){
fragments.clear();
}
// fix start
--
Configure bugmail: http://www.jacorb.org/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the jacorb-bugs
mailing list