|
|
Re: java OutOMemoryError
|
Posted: Sep 19, 2006 12:27 PM
|
|
There are different reasons to get OutOfMemoryError. by seeing your problem description.
1. You should mention the data size in bytes. ( 1 lakh record) can be 1K/100MB right).
2. In this case possible cause of an OutOfMemoryError is that you simply haven't got enough memory available for the workings of your application.
Solution to this problem may be: A). Increase the available JVM heap size. - Simply done with the -Xmx parameter to the JVM. (NOTE: up to available RAM only, don't exceed real system memory or your application will page and crawl to a halt/hung.)
B). Decrease the amount of memory your application needs. i guess this is needs your app should be re-design. Read/transmit data part/part. use some efficient collection framework for data handing ling
|
|