> Will Cardenas wrote:
> 
> Hello,
> 
>     I've posted this question previously but no one has commented
> on this.  I can't believe I am the only on suffering from this
> problem.  :-)
> 
>     I have an issue where I am creating MANY, 1000s of (container
> managed)
> entity beans and the EJB server memory usage grows until it runs out
> of memory.  Everything writes to the database fine.  I assume that the
> server
> is caching these new beans and never destroying the in-memory copies.
> Is
> there some sort of TTL setting that can applied to these or maybe a
> way to
> force the server not to cache the bean?
> 
>     Basically we are performing the following steps:
> 
>         1) Get the BeanHome
>         2) Call BeanHome.create() to create a new entity.
>         3) Start a txn.
>         4) Call some methods to set values in the entity bean.
>         5) Commit the txn.
> 
>     Steps 2-5 are repeated MANY (1000s of) times.
> 
>     Is there something else that we need to do after committing the
> txn?
> 
>     Thanks in advance.
> 
> Will
> 
Hi,
the number of entity beans you can create depends on the environment
on which you are running.
For example it depends on the database you use, if you use instantDB
you will block sooner than with Oracle, it depends also of the JVM used
on NT we have not the same results than on Solaris or AIX.
For example we have result 10 times better on our servers.
So I think it is difficult to communicate upon
the number max of beans JOnAS can create.
It is true that if you do a loop on creation entitbeans, and if you 
keep all the references on the entity beans in the client sooner or
later
you will have out of memory, if you don't keep all refernces
the garbage collector will release not used instances.

But its true also that the current version of JOnAS is not optimized
in term of handling instances in the life cycle of the beans
and we have already said this on the mailing list.
In the current version in CVS Tree the performance are better than those
with the JONas2.0 and we are working for a new version that
will give better results. 

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".

Reply via email to