I have had some problems with Orion running out of memory. As far as I can tell, the amount of Used Instances just gets larger and larger and larger as I process more findByXXX methods. The problem is that I have methods which go through a database with millions of records. It seems like no entity instances are ever released, even after I have exited the method requesting the entity beans. So I run out of memory after a while. What can I do about this? Can I specify that Orion shall use no more than X bytes of memory, forcing it to discard old entities, or this there some other solution? yours, Christian Tellefsen Exense ASA
