java.OutOfMemoryException

I am getting the java.OutOfMemoryException while inserting the data in the table.I am doing the batch update 1000 records per update ..Total records has to be inserted is 165000 rows(approx)Please ,provide me any solution for thks
[251 byte] By [prashannaaa] at [2007-11-27 3:10:19]
# 1
It could be you simply need to allocate a little more memory to your JVM, or it could possibly be a memory leak. Did you try to allocate more yet? You can add VM arguments like: -Xms128M -Xmx512M to set the min and max memory for the JVM.
aakturea at 2007-7-12 4:00:01 > top of Java-index,Core,Monitoring & Management...
# 2

> It could be you simply need to allocate a little more

> memory to your JVM, or it could possibly be a memory

> leak. Did you try to allocate more yet? You can add

> VM arguments like: -Xms128M -Xmx512M to set the min

> and max memory for the JVM.

How can i increase the heap size ..

In which file i can change the heap size...

prashannaaa at 2007-7-12 4:00:01 > top of Java-index,Core,Monitoring & Management...
# 3

You add them to the start command, like

java -Xms128M -Xmx512M MyClass

This will set the minimum size to 128 MB, and the max will be allowed up to 512MB. It won't allocate 512 unless it is required though.

There's an overview of all the command line options here: http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html

alper

aakturea at 2007-7-12 4:00:01 > top of Java-index,Core,Monitoring & Management...
# 4
just visit for java.OutOfMemoryException solution http://javasolution.blogspot.com/2007/06/javaoutofmemoryexception-solution.html
Arunssofta at 2007-7-12 4:00:01 > top of Java-index,Core,Monitoring & Management...