Could it be that Orion does not passivate entity
beans, thus running out of virtual memory? I was able
to restart the ProductClient and continue adding to
the table.

Does anybody know of a solution better than having to
stop and restart?

Thanks




--- Globetrot Communications <[EMAIL PROTECTED]>
wrote:
> I am populating a postgreSQL database with "Product"
> entity beans. I get a java.lang.OutOfMemeoryError
> After adding about 200K entries. Am I getting this
> error because all these entity beans stay in memory?
> Is there a work-around it besides increasing the -mx
> option value? How can one to create number of
> objects
> limited only by the disk-space?
> 
> Thanks for your help.
> 
>                         while (true)
>                       {
>                               // Create a new Product and narrow the
> reference.
>                               Product product =
> (Product)PortableRemoteObject.narrow(home.create(i),
> Product.class);
>                               name = "product"+i
>                               cost = i;
>                               product.setName(name);
>                               product.setPrice(cost);
>                       
>                               
>                       }
> 
> Satish
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - Buy the things you want at great
> prices. 
> http://auctions.yahoo.com/
> 


=====
______________________________________________________
5.5 cents calls with 6-second billing no fees. Free toll-fre numbers. No other charges
4 cents Domestic calls with no fees:
5 cents per minute International calls also available
http://globetrot.hypermart.net
e-mail: [EMAIL PROTECTED]
______________________________________________________

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices. 
http://auctions.yahoo.com/

Reply via email to