OutOfMemoryException in JBOSS
2 posts in topic
Flat View  Flat View

Posted By:   ethiraj_krishnan
Posted On:   Tuesday, May 27, 2003 04:28 AM

I am trying to synchorize data( on web-mysqldb) thru entity bean, i am getting this exception

Note : trying to insert values in while loop more than 2000 records

13:17:06,546 ERROR [LogInterceptor] Unexpected Error:
< >

Re: OutOfMemoryException in JBOSS

Posted By:   shekhar_shukla  
Posted On:   Tuesday, June 10, 2003 05:19 PM

Increase your heap size use the -Xms for minimum setting and -Xmx for maximum heap setting with java. e.g.

java -Xms64M -Xmx256M ...

Re: OutOfMemoryException in JBOSS

Posted By:   Christopher_Schultz  
Posted On:   Tuesday, May 27, 2003 06:19 AM

OOMs occur when you're trying to allocate a lot of objects and are never freeing them.

Is your update being performed within a transaction? If so, this can create a lot of transactional objects for state. If possible, do not use a transaction for this update.

I understand that you usually want to havea transaction for this type of thing, so removing the transaction might not be an option.

Does this only happen when you do this large update?

Another option is to raise the amound of memory available to the JVM from the command-line. You may have to use your server's configuration tool or edit a shell script to change this value.

Good luck,

About | Sitemap | Contact