Hello,
A distributed garbage collector unexports remote objects that are no more used
by any client within a timeout. Thus it allows the garbage collector to remove
from memory these objects.
So you have to call explicitely the unexportObject() method on the remote
objects that are no more used by any remote client (here your session bean).
Example:
UnicastRemoteObject.unexportObject(myBean, true);
Regards,
G�rard Borreill,
Alexandre Lefebvre wrote:
>
>
> ------------------------------------------------------------------------
>
> Subject: MemoryLeaks with Jeremie
> Date: Wed, 22 Aug 2001 10:01:37 +0200
> From: "Gintaut Andreas (PN-CCS/D)" <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>
> Hi all,
>
> I'm using jonas2.2.7 with Jeremie and get OutOfMemoryErrors when creating a
> lot (~130000) CMP EntityBeans.
> These Entity beans are created by a stateless session bean.
> As I read in the Mailing list this seams to be normal, because Jeremie does
> not support distributed garbage collection.
> So my question is: if memory grows and grows when using Jeremie, how can
> anyone use this constellation.
> Or is there a way to avoid the memory leak.
> Or is distributed garbage collection not necessary, when creating the beans
> from a session bean (in the same VM), although
> the way of creation doesn't differ from the creation a remote client would
> perform.
>
> Best regards
>
> Andreas
>
> ----
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body of the message "unsubscribe jonas-users".
> For general help, send email to [EMAIL PROTECTED] and
> include in the body of the message "help".
begin:vcard
n:Borreill;G�rard
tel;home:04 76 61 79 59
tel;work:04 76 61 79 00
x-mozilla-html:TRUE
url:www.ferma.fr
org:Ferma S.A.;Plate-formes / Admin
adr:;;31 Chemin du vieux Ch�ne;Meylan;;38640;France
version:2.1
email;internet:gerard.borreill
fn:G�rard Borreill
end:vcard