Hi,

I have made new tests of Jeremie to see if I could reproduce the memory leak, but I couldn't.

The test is simple :

// simplified client code
Tester tester = (Tester) Naming.lookup("initial-server-name");
while (true) {
    String new_name = tester.newName();
    tester = (Tester) Naming.lookup("initial-server-name");
}

// simplified server code
class TesterImpl implements Tester {
    static int id = 0;

    String newName() {
        String oldname = "tester" + i;
        Naming.unbind(oldname);
        i++;
        String new_name = "tester" + i;
        Naming.rebind(new_name, this);
        return new_name;
    }
}

The client thus repeatedly invokes the server that calls the registry to add and remove objects. This test has been running all night without any problem. I have also tested a slightly different scenario in which a new TesterImpl object is put in the registry during each iteration, the old one being unexported (this scenario requires methods I have just added to Jeremie). It works equally well.

This shows that the problem is not with the registry implementation, nor with a memory leak during Jeremie invocations. I can think of two other possibilities:

  • the problematic examples require distributed garbage collection, provided by RMI but not by Jeremie (and not by RMI/IIOP);
  • there is a memory leak in the transaction context transmission (not tested by the above example).
That's all for now !

Best regards,

Bruno
 

Philippe Coq wrote:

Joe Gittings wrote:
>
> Philippe,
>
> Thanks for this new release.
>
> Since I don't want to take credit for work I didn't do, I should perhaps
> clarify: my contribution to security was identifying and proposing fixes to
> a couple of bugs in the JRMI security implementation. I did not do anything
> to extend security to work with RMI (although I guess the bugs would have
> affected that too :).
>
> One question about 2.2.2: does it address the memory leakage problems that
> various people (including myself) are experiencing with Jeremie under
> 2.1.1?
>
> With thanks,
> Joe
>

In fact, I must confess that I don't know exactly...
I was so involved in the release process of the version that
I have not tried to reproduce the "memory leakage problems with Jeremie"
If somebody can easily reproduce it and tell us if the new version
of jonathan fix the bug it will be fine!
Best regards,

--
        Philippe

Philippe Coq  Evidian   Phone: (33) 04 76 29 78 49
Bull S.A  - 1 rue de Provence - 38432 Echirolles Cedex France
Download our EJBServer at http://www.objectweb.org
----
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".

--
*******************************************************************
Bruno Dumant
DTL/ASR
france telecom R&D
38-40 rue du général Leclerc
92794 Issy Moulineaux Cedex 9
FRANCE

mailto:[EMAIL PROTECTED]
tel: +33 1 45 29 46 03
fax: +33 1 45 29 66 04
*******************************************************************
 

Reply via email to