Ok I tried it with the hashcode and equals there is a new example
attached. Still runs out of memory. Also this is not really talking to a
database the findby method always thows a finderexception. Hence there is
no objects actually being created just a findby method that always fails,
and eventually the JVM runs out of memory. Usually around 73M any
ideas on what to try next?
On Tue, 23 Jan 2001, Bryan (Mailing Lists) wrote:
> Based on my experience with EJB and JOnAS, I believe your problem is most
> likely that you didn't implement all the methods you need to in your PK
> class. In addition to the constructors, you also need to implement
> hashcode() and equals(). Without those methods, JOnAS has no way to
> determine if an entity has already been loaded into RAM, so it keeps loading
> it over and over and you eventually run out of memory. See the jonas docs
> and examples on how to fill out those two PK methods. Let me know how it
> turns out.
>
> Bryan
>
>
> ----- Original Message -----
> From: "G.C. Miller" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, January 23, 2001 1:21 AM
> Subject: Memory Leak
>
>
> > I have attached a simple ejb example when run for a few hours on my
> > machine it will run out of memory. The bean is so simple it cant be in
> > its own code.
> >
> > I have tried this on a redhat 7.0 machine with all the updates.
> > I have also tried jdk 1.2.2 and 1.3.0.
> > I have tried native thread, green thread, and with jit, and no jit.
> > Same result always runs out of memory. If I am doing something wrong or
> > if there is a magic combo to run could someone please share that with me?
> >
> >
> >
>
ejb_test.tar.gz