Re: Out of memory error in Notification Service...
"Min Lu" <[email protected]> Mon, 23 Sep 2002 10:08:07 -0400
| Newsgroups | gmane.comp.corba.openorb.devel |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C2630A.A45B39E0
Content-Type: text/plain
First of all, we are still using OpenORB-1.1.0, TransactionService-1.1.0,
PersistentStateService-1.1.0
And NotificationService-1.0.1. Here is what I remember I did:
We first find out NotificationService is leaking memory even when there is
no
activities between consumer and suplier. Someone told even just have it sits
there
For a couple of weeks, it will ran out of memory.
I still don't understand all the details of this, but found of one line in
/PersistentStateService-1.1.0/src/main/org/openorb/pss/connector/memory/Memo
ryWrapper.java
private void map_factories( org.openorb.pss.compiler.reflect.psdlStorageHome
sh, java.io.PrintWriter file )
{
....
// Min Lu file.println("\t\tregister_type_incarnation(
obj );");
}
After commenting this, the leak seemed to stop. Maybe the structured was not
properly uninitialized?
With this one line change, our are able to flood the ChannelServer with
millions of events without seeing
"Out of Memory" exception.
Min
-----Original Message-----
From: Michael Rumpf [mailto:[email protected]]
Sent: Monday, September 23, 2002 2:53 AM
To: [email protected]
Subject: Re: [openorb-dev] Out of memory error in Notification Service...
On Fri, 2002-09-20 at 16:33, Min Lu wrote:
> We did extensive testing with OpenORB NotificationService, and we
> found exactly the same problem. We would actually flood the system
> with millions of events as fast as it can go.
> I traced this problem to one line invocation in either transaction or
> persistentstateservice where
> some data structure seemed to be allocated without being removed later.
>
> Once that line is commented out, this problem disappeared.
Has this fix been integrated into "The Community OpenORB"'s source base? If
not, please post the diff to the openorb-devel mailing list. The upcoming
1.3.0 version should really have this fix incorporated...
HOWTO subscribe to the mailing lists or HOWTO submit the patches can be
found on the homepage: http://openorb.sf.net
Thanks for your contribution,
Michael
> Min
>
>
>
> -----Original Message-----
> From: Ramesh Babu [mailto:[email protected]]
> Sent: Friday, September 20, 2002 2:40 AM
> To: [email protected]
> Subject: [openorb-dev] Out of memory error in Notification Service...
>
>
> Dear all,
>
>
> We have a minor problem, and expecting the help from
> someone to trace out the problem.
>
> In the openorb notification service 1.2.0, when the large
> number of objects (say 2000 plus), are send to notification, some time
> the notification service is throwing out of memory error. This occurs
> rarely. Will this error be related to the number of objects. If so,
> will the notification server be configured to avoid these errors. Any
> help is greatly appreciated.
>
>
> Thanks,
> R.Ramesh Babu
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [email protected] with a subject of:
> unsubscribe openorb-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of:
unsubscribe openorb-dev
------_=_NextPart_001_01C2630A.A45B39E0
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2654.89">
<TITLE>RE: [openorb-dev] Out of memory error in Notification =
Service...</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2>First of all, we are still using OpenORB-1.1.0, =
TransactionService-1.1.0, PersistentStateService-1.1.0</FONT>
<BR><FONT SIZE=3D2>And NotificationService-1.0.1. Here is what I =
remember I did:</FONT>
</P>
<P><FONT SIZE=3D2>We first find out NotificationService is leaking =
memory even when there is no</FONT>
<BR><FONT SIZE=3D2>activities between consumer and suplier. Someone =
told even just have it sits there</FONT>
<BR><FONT SIZE=3D2>For a couple of weeks, it will ran out of =
memory.</FONT>
</P>
<P><FONT SIZE=3D2>I still don't understand all the details of this, but =
found of one line in</FONT>
<BR><FONT =
SIZE=3D2>/PersistentStateService-1.1.0/src/main/org/openorb/pss/connecto=
r/memory/MemoryWrapper.java</FONT>
</P>
<P><FONT SIZE=3D2>private void map_factories( =
org.openorb.pss.compiler.reflect.psdlStorageHome sh, =
java.io.PrintWriter file )</FONT>
<BR><FONT SIZE=3D2>{</FONT>
<BR><FONT SIZE=3D2>....</FONT>
<BR><FONT SIZE=3D2>// Min Lu =
=
=
file.println("\t\tregister_type_incarnation( obj );"); =
=
</FONT>
<BR><FONT SIZE=3D2>}</FONT>
</P>
<P><FONT SIZE=3D2>After commenting this, the leak seemed to stop. Maybe =
the structured was not properly uninitialized?</FONT>
<BR><FONT SIZE=3D2>With this one line change, our are able to flood the =
ChannelServer with millions of events without seeing</FONT>
<BR><FONT SIZE=3D2>"Out of Memory" exception.</FONT>
</P>
<P><FONT SIZE=3D2>Min</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>
<P><FONT SIZE=3D2>-----Original Message-----</FONT>
<BR><FONT SIZE=3D2>From: Michael Rumpf [<A =
HREF=3D"mailto:[email protected]">mailto:[email protected]</A>=
] </FONT>
<BR><FONT SIZE=3D2>Sent: Monday, September 23, 2002 2:53 AM</FONT>
<BR><FONT SIZE=3D2>To: [email protected]</FONT>
<BR><FONT SIZE=3D2>Subject: Re: [openorb-dev] Out of memory error in =
Notification Service...</FONT>
</P>
<BR>
<P><FONT SIZE=3D2>On Fri, 2002-09-20 at 16:33, Min Lu wrote:</FONT>
<BR><FONT SIZE=3D2>> We did extensive testing with OpenORB =
NotificationService, and we </FONT>
<BR><FONT SIZE=3D2>> found exactly the same problem. We would =
actually flood the system </FONT>
<BR><FONT SIZE=3D2>> with millions of events as fast as it can =
go.</FONT>
<BR><FONT SIZE=3D2>> I traced this problem to one line invocation in =
either transaction or</FONT>
<BR><FONT SIZE=3D2>> persistentstateservice where</FONT>
<BR><FONT SIZE=3D2>> some data structure seemed to be allocated =
without being removed later.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Once that line is commented out, this problem =
disappeared.</FONT>
</P>
<P><FONT SIZE=3D2>Has this fix been integrated into "The Community =
OpenORB"'s source base? If not, please post the diff to the =
openorb-devel mailing list. The upcoming 1.3.0 version should really =
have this fix incorporated...</FONT></P>
<P><FONT SIZE=3D2>HOWTO subscribe to the mailing lists or HOWTO submit =
the patches can be found on the homepage: <A =
HREF=3D"http://openorb.sf.net" =
TARGET=3D"_blank">http://openorb.sf.net</A></FONT>
</P>
<P><FONT SIZE=3D2>Thanks for your contribution,</FONT>
<BR><FONT SIZE=3D2> </FONT>
<BR><FONT SIZE=3D2> Michael</FONT>
</P>
<P><FONT SIZE=3D2>> Min</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> -----Original Message-----</FONT>
<BR><FONT SIZE=3D2>> From: Ramesh Babu [<A =
HREF=3D"mailto:[email protected]">mailto:[email protected]=
dventnet.com</A>]</FONT>
<BR><FONT SIZE=3D2>> Sent: Friday, September 20, 2002 2:40 AM</FONT>
<BR><FONT SIZE=3D2>> To: [email protected]</FONT>
<BR><FONT SIZE=3D2>> Subject: [openorb-dev] Out of memory error in =
Notification Service...</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Dear all,</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT =
SIZE=3D2>>  =
; We have a minor problem, and expecting the help from =
</FONT>
<BR><FONT SIZE=3D2>> someone to trace out the problem.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT =
SIZE=3D2>>  =
; In the openorb notification service 1.2.0, when the large =
</FONT>
<BR><FONT SIZE=3D2>> number of objects (say 2000 plus), are send to =
notification, some time </FONT>
<BR><FONT SIZE=3D2>> the notification service is throwing out of =
memory error. This occurs </FONT>
<BR><FONT SIZE=3D2>> rarely. Will this error be related to the =
number of objects. If so, </FONT>
<BR><FONT SIZE=3D2>> will the notification server be configured to =
avoid these errors. Any </FONT>
<BR><FONT SIZE=3D2>> help is greatly appreciated.</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> Thanks,</FONT>
<BR><FONT SIZE=3D2>> R.Ramesh Babu</FONT>
<BR><FONT SIZE=3D2>> </FONT>
<BR><FONT SIZE=3D2>> =
-----------------------------------------------------------</FONT>
<BR><FONT SIZE=3D2>> If you wish to unsubscribe from this mailing, =
send mail to</FONT>
<BR><FONT SIZE=3D2>> [email protected] with a subject of:</FONT>
<BR><FONT SIZE=3D2>> unsubscribe =
openorb-dev</FONT>
<BR><FONT SIZE=3D2>> </FONT>
</P>
<P><FONT =
SIZE=3D2>----------------------------------------------------------- =
</FONT>
<BR><FONT SIZE=3D2>If you wish to unsubscribe from this mailing, send =
mail to</FONT>
<BR><FONT SIZE=3D2>[email protected] with a subject of:</FONT>
<BR> <FONT =
SIZE=3D2>unsubscribe openorb-dev</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C2630A.A45B39E0--
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of:
unsubscribe openorb-dev